Re:Full Chess Game with AI in 5k of Javascript
by mojuba on Saturday January 05, 2008 @09:54PM
(#95234)
It plays too fast and loses quickly, is there a way to increase the search depth?
[ Parent
| on HN ]
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.