I Made a Weird Chess AI from Scratch

preview_player
Показать описание
I made an algorithm that can play you in chess in Python. It uses the minimax algorithm with alpha-beta pruning. I ended up creating a custom chess engine for it that works okay.

I considered using Java and Javascript for this but decided against it for some reason. Another way to approach this is to use machine learning, neural networks, or some other form of artificial intelligence. This was a similar process to my tic tac toe video, which goes a lot more into the detail of how a program like this is made.

This video was loosely inspired by Code Bullet's "I Created an AI to Play Chess" video. The next video will be a Keeper devlog.

(Next Program)
Рекомендации по теме
Комментарии
Автор

This video took like 70 hours to make :)

nextProgram
Автор

Ahh, the programmer's paradox: That which seems the simplest takes the longest and that which seems the hardest takes a minute.

clavesi
Автор

Great video! That little game you made called “chess” could definitely take off.

JelleVermandere
Автор

“I made my own engine.”

You poor soul.

supernukey
Автор

*if(aboutToLose):*
*dont()*
The best code in existence, just don't forget your functions.

someone
Автор

"95% of the time that a novice programmer complains that something is 'terrible to use', it's because they don't know what they're doing."
...
"Anyway, pygame is terrible to use."
lololol

ninjatek
Автор

Imagine still playing Chess when Chess 2 has been out for years

greenmario
Автор

*Sees the thumbnail*
Me: This man is a genius.

ninjatek
Автор

You see this, this content right here? Yeah it’s called quality content. Just saying

ineedanewytname
Автор

When the title says scratch, but he doesn't make it using scratch

sad scratch noises

shinjukim
Автор

As a person who has made a real chess engine, I can say that there's million things to add to this. For example AB-pruning, null move, bitboards, proper rules, transposition tables, opening books, uci protocol. And just switch to C++

leovaris
Автор

that feeling when a chess ad plays before this chess video

aidanthird
Автор

Next time make a weird chess AI *IN* Scratch.

Jhonxay
Автор

This dude: What am I some kind of nerd?
Also this dude: *programs a chess engine from scratch *

ataud
Автор

I love how you called the bishop the fancy pawn

bearkybearky
Автор

Was listening to Queen and saw this clicked on it straight away

joshuabaker
Автор

Please nerf the Queen, chess players haven't received any update for hundred years.

TVShrts
Автор

2:51 "oh, BTW, this don't support moves like casting or l'passante... "
Me:I think that's ok, just start with the basics and-
"or checkmate"
Me: Wha..?

ElTovarish
Автор

chess grandmaster watching those chess games be like:" pathetic"

derkach
Автор

Make this ai a minigame in your game, and make it so it gives you a prize for beating it!!!!

swordyboiii