I played a quick game and beat it! me: g5-e5; comp: b6-c6; me: h4-d8; comp: b7-c7; me: d8-h4; comp: c7-d7; me: h4-d8.. I WIN! even map this out on your own board if you dont believe me x.x
Great program! Beyond my felt limits of Scratch. Of course it's slow, but the point is that it plays a correct game.
My test game: 1.e4 h6 2.Bc4 g6 3.Nf3 b6 4.Ne5 g5 5.-- (I clicked on the Bc4, the program marked f1-a6 and d1-h5, I missed the move) d5 6.Qh5 dxc4 7.Qxf7# program commented 'You win'.
Again, great job.
I do have a idea, it would be kinda hard to figure out but I would make a coded like engine where one piece would make a move and the cpu would make a certain move and the only way to win is figure out the code, but this is awesome.
Download the 46 sprites and 137 scripts of "Chess" and open it in Scratch
Project Notes
As far as I know, this is the first functional chess engine for Scratch.
- You play white, the computer plays black.
- "New Game", obviously, resets the board for a new game. This may take a few seconds.
- To move, click on a piece. All possible moves will be highlighted, and clicking on a highlighted square will move the piece to it.
- After you move, "Thinking..." will appear at the top of the screen. The white line above that indicates the progress of the AI engine.
- The checkmate and stalemate detection is not thoroughly tested, but it should work.
- All of the piece and board images were created by me in Google SketchUp, rendered in Kerkythea, and finished with the GIMP. The "New Game" images were also made in the GIMP. Any web search engine should find these free programs.
- Please be patient with the AI; Scratch is not well suited to the computational demands of even this primitive chess engine.
Comments
You need to be logged in to post comments
Add a Comment
I won!!!
so cool!!!
this is absolutly amazing the best i have played in a while.. but it takes too long! but still, nice game
that's kind of...um... AMAZING! WHOA! CHESS! This is so going in meh new gallery!
It takes a long time to load, and it let me move my bishop ahead 2 spaces, over a pawn... certainly a problem
Use turbo speed.
Whoa! AI takes a long time though.
Brilliant. Utter genius.
awsome game
It can be beaten with scholar's mate
WOW Great game. did you program it all yourself?
COOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL!
I castled!
To all who complain about the speed. See project "Turbo Speed Tutor" by DarthPickley to get reasonable speed in the downloaded version.
I played a quick game and beat it! me: g5-e5; comp: b6-c6; me: h4-d8; comp: b7-c7; me: d8-h4; comp: c7-d7; me: h4-d8.. I WIN! even map this out on your own board if you dont believe me x.x
you know, i think the thinking is fake. its such a waste of time!
YES
well of course it'd be faster if the whole thing weren't in it
you know what? I think that scratch, especially scratch 1.3, can't go so very fast. If you can match this project with faster thinking, do it.
(view all replies)the computer takes forever to think
Yeah.
25 seconds?
its cool but need to much time
too bad that it's impossible to make it less slow.
this is so complicated (I downloaded it) how long did it take to make?
plz reply
how did you make this
This is cool
takes to long to think
make him think faster
sadly, that's impossible.
stupid!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
YOUR WRONG!
now i'll check yours and see how much better they are.
oh, so i guess that means your chess game is better? please note that this has the best AI in a chess game on scratch, and it's his first project.
Midecah, I have google scetchup but I cant take things that I have saved and put theme in my projects! I cant impoert theme. please help!!!! thanks.
what the bbbbbbbbllllllllllaaaaaaannnnnnkkkkkkkkk amazing
Checkmate in 4 moves!!
(view all replies)lol my sister pwned me at chess in 4 moves once
Scholars mate and fools mate are the exact same thing!
liar liar pants on fire
How then?
(view all replies)WOW! I had NO IDEA a computer could do something like that! It foiled my rook's plan before it started, using the power of its pawn arrangement!
awesome1!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
be my friend
(view all replies)AMAZING!! *loves and faves*
You must be like really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really smart!!!!!!!!!
agreed
It's not that good. Do you have to download it for it to work properly???? I just can't figure it out. otherwise I would love it.
OMG! OMG! OMG! OMG!OMG! OMG! OMG! OMG! OMG!
Great job on the chess game.
Great program! Beyond my felt limits of Scratch. Of course it's slow, but the point is that it plays a correct game. My test game: 1.e4 h6 2.Bc4 g6 3.Nf3 b6 4.Ne5 g5 5.-- (I clicked on the Bc4, the program marked f1-a6 and d1-h5, I missed the move) d5 6.Qh5 dxc4 7.Qxf7# program commented 'You win'. Again, great job.
This is your only game?!?
The computer takes too long to think.
It has to think hard, look at what it can do.
(view all replies)Incredible. Absolutely incredible. This game is one of, if not the, best coded project on scratch. Wonderful job, absolutely wonderful.
I do have a idea, it would be kinda hard to figure out but I would make a coded like engine where one piece would make a move and the cpu would make a certain move and the only way to win is figure out the code, but this is awesome.
I do have a question, I have downloaded google sketch, how did you get the image to scratch???
Brilliant! Must of took a long time to even think of the thesis of how the coding will go.
Cool. It's not the smartest CC I've ever played..
well of course it isn't, it's scratch...
(view all replies)SOOO SLLOWWWW...........................................................ZZZZZzzzzzzzzZZZZZZZZzzzzzzzzZZZZZZZzzzz................
Coooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooool!!!!!!!!!!
Whats with you people, he actually made the game think on its own. No duh it`ll be kinda slow!
for a first this is very good!
it's so slow
The computer must be a good thinker
I wish it would think faster but other than that WOW
Can you make checkers too?
How did you make it! It looks so realistic!
I like playing chess, and what the heck is GoogleScetchUp???
a program you can download from google. it's for 3d modeling
(view all replies)Good game I love chess but wayyyyyyyyy too slow
quit whining unless you have a faster one.. you can't expect such a complex project made with SCRATCH to be lightning speed. just saying.
awsome!
Chess is my favorite game. :)
cool..............................uh
could you make the CPU think faster
I don't think that's possible unless MIT upgrades Scratch.
(view all replies)ITS VERY NICE
WHAT'S WITH THE CAPS NO OFFENSE
Is it supposed to crash the move before I beat the computer?
I LOVE GIMP!!!!!!!