Ajax chess

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

gladius
Posts: 568
Joined: Tue Dec 12, 2006 10:10 am
Full name: Gary Linscott

Ajax chess

Post by gladius »

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 :).
Carlos777
Posts: 1739
Joined: Sun Dec 13, 2009 6:09 pm

Re: Ajax chess

Post by Carlos777 »

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
gladius
Posts: 568
Joined: Tue Dec 12, 2006 10:10 am
Full name: Gary Linscott

Re: Ajax chess

Post by gladius »

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
Well done :). Although it's significantly handicapped at 4000 NPS, it still only gets around 4-5 ply at 150k NPS.

I also realized the name may be somewhat misleading, it's not really ajax, it's just using client javascript.
Carlos777
Posts: 1739
Joined: Sun Dec 13, 2009 6:09 pm

Re: Ajax chess

Post by Carlos777 »

gladius wrote: Well done :). Although it's significantly handicapped at 4000 NPS, it still only gets around 4-5 ply at 150k NPS.
What HW do you have? Mine is a Pentium D 2.8GHz.

I used Firefox btw.
I also realized the name may be somewhat misleading, it's not really ajax, it's just using client javascript.
Oh, I see. Ajax would be a cool name though.
:)

Carlos.
gladius
Posts: 568
Joined: Tue Dec 12, 2006 10:10 am
Full name: Gary Linscott

Re: Ajax chess

Post by gladius »

Carlos777 wrote:What HW do you have? Mine is a Pentium D 2.8GHz.

I used Firefox btw.
Interesting, I thought firefox would be faster. I'm running a core2 3Ghz.
Carlos777 wrote:Oh, I see. Ajax would be a cool name though.
:)
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 :).
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Ajax chess

Post by zullil »

gladius wrote:
Oh, it always plays white for now - too lazy to code up html controls :).
Thanks, but playing Black without the board reversed is too hard for me. :roll:

Getting about 70000 nps using Safari 4.0.4 on a 2 GHz Core 2 Duo MacBook.
User avatar
AdminX
Posts: 6340
Joined: Mon Mar 13, 2006 2:34 pm
Location: Acworth, GA

Re: Ajax chess

Post by AdminX »

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
"Good decisions come from experience, and experience comes from bad decisions."
__________________________________________________________________
Ted Summers
gladius
Posts: 568
Joined: Tue Dec 12, 2006 10:10 am
Full name: Gary Linscott

Re: Ajax chess

Post by gladius »

zullil wrote:Thanks, but playing Black without the board reversed is too hard for me. :roll:

Getting about 70000 nps using Safari 4.0.4 on a 2 GHz Core 2 Duo MacBook.
Cool, I didn't realize Safari had such a good JS core.

I've switched it so that the human plays white now :).
gladius
Posts: 568
Joined: Tue Dec 12, 2006 10:10 am
Full name: Gary Linscott

Re: Ajax chess

Post by gladius »

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.
mhalstern
Posts: 484
Joined: Wed Nov 18, 2009 1:09 am

Re: Ajax chess

Post by mhalstern »

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