I was bored over the weekend, so I put this together. This is using an optimized version of my old javascript chess engine. It gets about ~150k NPS in Chrome on my machine, so plays a decent game. I'm curious to see what NPS others get.
http://forwardcoding.com/projects/ajaxchess/chess.html.
Oh, it always plays white for now - too lazy to code up html controls .
Ajax chess
Moderators: hgm, Rebel, chrisw
-
- Posts: 1739
- Joined: Sun Dec 13, 2009 6:09 pm
Re: Ajax chess
Hi Gary,
Nice to play with Ajax.
r4rk1/p1p2p2/1b1p4/1P2P2p/3B1p1n/P6P/2P2Pq1/R4RK1 w - -
N:2114 S:-2000000 NPS:4019.011406844106 b2d4 b7g2
Best,
Carlos
Nice to play with Ajax.
r4rk1/p1p2p2/1b1p4/1P2P2p/3B1p1n/P6P/2P2Pq1/R4RK1 w - -
N:2114 S:-2000000 NPS:4019.011406844106 b2d4 b7g2
Best,
Carlos
-
- Posts: 568
- Joined: Tue Dec 12, 2006 10:10 am
- Full name: Gary Linscott
Re: Ajax chess
Well done . Although it's significantly handicapped at 4000 NPS, it still only gets around 4-5 ply at 150k NPS.Carlos777 wrote:Hi Gary,
Nice to play with Ajax.
r4rk1/p1p2p2/1b1p4/1P2P2p/3B1p1n/P6P/2P2Pq1/R4RK1 w - -
N:2114 S:-2000000 NPS:4019.011406844106 b2d4 b7g2
Best,
Carlos
I also realized the name may be somewhat misleading, it's not really ajax, it's just using client javascript.
-
- Posts: 1739
- Joined: Sun Dec 13, 2009 6:09 pm
Re: Ajax chess
What HW do you have? Mine is a Pentium D 2.8GHz.gladius wrote: Well done . Although it's significantly handicapped at 4000 NPS, it still only gets around 4-5 ply at 150k NPS.
I used Firefox btw.
Oh, I see. Ajax would be a cool name though.I also realized the name may be somewhat misleading, it's not really ajax, it's just using client javascript.
Carlos.
-
- Posts: 568
- Joined: Tue Dec 12, 2006 10:10 am
- Full name: Gary Linscott
Re: Ajax chess
Interesting, I thought firefox would be faster. I'm running a core2 3Ghz.Carlos777 wrote:What HW do you have? Mine is a Pentium D 2.8GHz.
I used Firefox btw.
Yeah, that's a nice name. It's internal name is actually GarboChess, but it's not quite as strong as it's C++ older brother .Carlos777 wrote:Oh, I see. Ajax would be a cool name though.
-
- Posts: 6442
- Joined: Tue Jan 09, 2007 12:31 am
- Location: PA USA
- Full name: Louis Zulli
Re: Ajax chess
Thanks, but playing Black without the board reversed is too hard for me.gladius wrote:
Oh, it always plays white for now - too lazy to code up html controls .
Getting about 70000 nps using Safari 4.0.4 on a 2 GHz Core 2 Duo MacBook.
-
- Posts: 6340
- Joined: Mon Mar 13, 2006 2:34 pm
- Location: Acworth, GA
Re: Ajax chess
Intel Core2Quad Q6700
rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3
N:83010 S:5 NPS:165688.62275449102 e2e4 e7e5 d2d4 e5d4 d1d4 b8c6 d4d2
rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3
N:83010 S:5 NPS:165688.62275449102 e2e4 e7e5 d2d4 e5d4 d1d4 b8c6 d4d2
"Good decisions come from experience, and experience comes from bad decisions."
__________________________________________________________________
Ted Summers
__________________________________________________________________
Ted Summers
-
- Posts: 568
- Joined: Tue Dec 12, 2006 10:10 am
- Full name: Gary Linscott
Re: Ajax chess
Cool, I didn't realize Safari had such a good JS core.zullil wrote:Thanks, but playing Black without the board reversed is too hard for me.
Getting about 70000 nps using Safari 4.0.4 on a 2 GHz Core 2 Duo MacBook.
I've switched it so that the human plays white now .
-
- Posts: 568
- Joined: Tue Dec 12, 2006 10:10 am
- Full name: Gary Linscott
Re: Ajax chess
I've updated after a few more strength improvements .
It now reaches about 8-9 ply in 1 second on my machine in Chrome. Good enough to beat me! Still, no passed pawn/mobility/king safety evaluation, so it should be pretty easy to beat for better chess players.
It now reaches about 8-9 ply in 1 second on my machine in Chrome. Good enough to beat me! Still, no passed pawn/mobility/king safety evaluation, so it should be pretty easy to beat for better chess players.
-
- Posts: 484
- Joined: Wed Nov 18, 2009 1:09 am
Re: Ajax chess
I7-920 2.67 Ghz Windows7 Ultimate - Internet Explorer 8.
I'll post a few moves and the output:
E4 E5
Nodes:13922 Score:-60 Ply:7 NPS:13811.507936507936 e7e5 d2d4 e5d4 d1d4 b8c6 d4a4
Nf3 D5
Nodes:15730 Score:-10 Ply:7 NPS:15605.15873015873 d7d5 f3e5 d5e4 b1c3 g8f6 d2d4
Before I was able to see the reply, IE8 took it upon itself to tell me that a script on the page was causing it to respond slowly:
"Stop running this script a Script on this page is causing your browser to run slowly. If it continues to run, your computer might become unresponsive -I choose "no" to the end script prompt. This popped up after each white move WFT! Is Microsoft jealous because they did not write the program?!
B b5 + c6
Nodes:16524 Score:125 Ply:8 NPS:210.01525165226232 c7c6 b5d3 g8f6 d1e2 d5e4 d3e4
Ba4 dxe4
Nodes:17174 Score:1365 Ply:7 NPS:8143.195827406354 d5e4 f3g1 b7b5 a4b3 g8f6 b1c3
I'll post a few moves and the output:
E4 E5
Nodes:13922 Score:-60 Ply:7 NPS:13811.507936507936 e7e5 d2d4 e5d4 d1d4 b8c6 d4a4
Nf3 D5
Nodes:15730 Score:-10 Ply:7 NPS:15605.15873015873 d7d5 f3e5 d5e4 b1c3 g8f6 d2d4
Before I was able to see the reply, IE8 took it upon itself to tell me that a script on the page was causing it to respond slowly:
"Stop running this script a Script on this page is causing your browser to run slowly. If it continues to run, your computer might become unresponsive -I choose "no" to the end script prompt. This popped up after each white move WFT! Is Microsoft jealous because they did not write the program?!
B b5 + c6
Nodes:16524 Score:125 Ply:8 NPS:210.01525165226232 c7c6 b5d3 g8f6 d1e2 d5e4 d3e4
Ba4 dxe4
Nodes:17174 Score:1365 Ply:7 NPS:8143.195827406354 d5e4 f3g1 b7b5 a4b3 g8f6 b1c3