4 ms·
Full Chess Game with AI in 5k of Javascript
- daniel-cussen 19y agoIt's pretty good.
- mojuba 19y agoIt plays too fast and loses quickly, is there a way to increase the search depth?
- dfranke 19y agoAs 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.
- nitam 19y agoI 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 :)
- dfranke 19y agoThey 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.
- mojuba 19y agoFound this through their web site on SF.net: http://p4wn.sourceforge.net/main-branch/ http://p4wn.sourceforge.net/main-branch/ http://p4wn.sourceforge.net/main-branch/0_6_3.js http://p4wn.sourceforge.net/main-branch/0_6_3.js
- some 19y agoI dont have Javascript enabled. Tell me, when the HTML version is ready.
- BrandonM 19y agoI wasn't trying too hard, but I was up two pawns until I walked into a dumb checkmate. It's been way too long since I played chess...
- mattmaroon 19y agoTerrible interface, terrible AI.
- ctingom 19y agoI checkmated your 5k. Come back later with more code and we will play again.
- deleted 19y ago[deleted]