Re:Full Chess Game with AI in 5k of Javascript
by dfranke on Saturday January 05, 2008 @10:57PM
(#95247)
As I commented below, the source is unreadable, but I don't think it's using minimax. The algorithm simply seems to be don't leave pieces undefended and try to attack opponent's pieces. It didn't see my mate-in-two where the first move was a knight sacrifice.
Re:Full Chess Game with AI in 5k of Javascript
by nitam on Sunday January 06, 2008 @06:23AM
(#95291)
I like the idea but it has some problems.
I played 2 games and in both of them it left pieces undefended. And when delivered checkmate he ate my defended queen with king :)
Re:Full Chess Game with AI in 5k of Javascript
by dfranke on Saturday January 05, 2008 @10:52PM
(#95245)
They obfuscate the source with one-letter variable names and no indentation to keep the size down, which is pretty silly. It wouldn't be any less impressive if it were 10k and readable.
http://p4wn.sourceforge.net/main-branch/
http://p4wn.sourceforge.net/main-branch/0_6_3.js