News for hackers. Stuff that matters.
Re:Full Chess Game with AI in 5k of Javascript by mattmaroon on Sunday January 06, 2008 @06:53PM (#95468)
Terrible interface, terrible AI.
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?
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.
Re:Full Chess Game with AI in 5k of Javascript by mojuba on Saturday January 05, 2008 @11:11PM (#95253)
Re:Full Chess Game with AI in 5k of Javascript by BrandonM on Sunday January 06, 2008 @07:00AM (#95293)
I 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...
Re:Full Chess Game with AI in 5k of Javascript by ctingom on Sunday January 06, 2008 @11:58PM (#95519)
I checkmated your 5k. Come back later with more code and we will play again.
Re:Full Chess Game with AI in 5k of Javascript by daniel-cussen on Saturday January 05, 2008 @09:36PM (#95233)
It's pretty good.
Re:Full Chess Game with AI in 5k of Javascript by some on Sunday January 06, 2008 @04:03AM (#95277)
I dont have Javascript enabled. Tell me, when the HTML version is ready.
Re:Full Chess Game with AI in 5k of Javascript by axod on Sunday January 06, 2008 @02:54PM (#95401)
You're from the past aren't you.
Re:Full Chess Game with AI in 5k of Javascript by german on Sunday January 06, 2008 @04:02PM (#95418)
You use IE right?