Pretty cool!
I like the interface, nice "drag routine" to show the piece in transit.
I played a quick mess around game:
1. b3 e5
2. Bb2 Nc6
3. e3 d5
4. Bb5 Qg5 (it's surprising how many programs go for this move with no book)
5. Nf3 Qxg2
6. Rg1 Qh3
7. Bxe5 Bg4
8. Rg3 Bxf3
9. Qxf3 Qxh2
10. Rxg7 Bxg7
11. Bxh2 Bxa1
12. Qxd5 Ne7
13. Bxc6+ bxc6
14. Qa5 a6
15. Qxc7 Bf6
16. Bd6 Rg8
17. Bxe7 Be5
18. Qxe5 Rg1+
19. Ke2 Kd7
20. Qd6+ Ke8
21. Bf6 Re1+
22. Kxe1 Rc8
23. Qe7#
Ajax chess
Moderator: Ras
-
- Posts: 568
- Joined: Tue Dec 12, 2006 10:10 am
- Full name: Gary Linscott
Re: Ajax chess
IE has a timer that kicks in after about 2 seconds that warns about javascript "stealing" the cpumhalstern wrote: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 probably don't check if I should finish searching frequently enough on IE. Still 15k NPS is very impressive for IE, mine runs at about 10k.
-
- Posts: 568
- Joined: Tue Dec 12, 2006 10:10 am
- Full name: Gary Linscott
Re: Ajax chess
Nice game, congratsLiquidNitrogenOverclocker wrote:Pretty cool!
I like the interface, nice "drag routine" to show the piece in transit.
I played a quick mess around game:
...

Re: Ajax chess
How hard would it be to convert the gui stuff for a game like checkers?gladius wrote: Nice game, congrats. Yeah, the javascript libraries out there are pretty cool, it's actually pretty easy to put something like the piece dragging together nowadays.
One thing I would like to do is have a web-based version of my checkers program play people online, like yours is doing. Rather than implement the a.i. all in Javascript, I'd prefer it if there was a way to communicate to an outside C-application.
Never really looked into it though.
-
- Posts: 568
- Joined: Tue Dec 12, 2006 10:10 am
- Full name: Gary Linscott
Re: Ajax chess
It would be pretty easy to do a checkers GUI, you'd just need to do a move validator in javascript. Hooking it up to an outside C-application is quite a bit trickier, you have to host the application in a web service, or your web server, and have the javascript talk to that.LiquidNitrogenOverclocker wrote:How hard would it be to convert the gui stuff for a game like checkers?
One thing I would like to do is have a web-based version of my checkers program play people online, like yours is doing. Rather than implement the a.i. all in Javascript, I'd prefer it if there was a way to communicate to an outside C-application.
Never really looked into it though.
-
- Posts: 660
- Joined: Sat Dec 05, 2009 5:13 am
- Location: Colorado, USA
Re: Ajax chess
In opening position (after white plays 1. e4):
Hardware:
Windows 7 Home Premium 64-bit
Intel Core 2 Quad Q8300 @ 2.50gHz
6GB DDR2
No CPU intensive tasks were running during the benchmark. Tests were conducted in this order:
Firefox, Chrome, Opera, IE.
Peter
- Google Chrome 4 NPS: 199384 Ply: 9
- Opera 10.10 NPS: 31540 Ply: 9
- Firefox 3.6 NPS: 30313 Ply: 7
- Internet Explorer 8: 12513 Ply: 7
Hardware:
Windows 7 Home Premium 64-bit
Intel Core 2 Quad Q8300 @ 2.50gHz
6GB DDR2
No CPU intensive tasks were running during the benchmark. Tests were conducted in this order:
Firefox, Chrome, Opera, IE.
Peter
Re: Ajax chess
That Google Chrome browser must be the thinnest client with the greatest pass-through to the CPU!alpha123 wrote:In opening position (after white plays 1. e4):
- Google Chrome 4 NPS: 199384 Ply: 9
- Opera 10.10 NPS: 31540 Ply: 9
- Firefox 3.6 NPS: 30313 Ply: 7
- Internet Explorer 8: 12513 Ply: 7
-
- Posts: 6442
- Joined: Tue Jan 09, 2007 12:31 am
- Location: PA USA
- Full name: Louis Zulli
Re: Ajax chess
Safari-4.0.4 (64 bit)alpha123 wrote:In opening position (after white plays 1. e4):
Latest stable versions of all browsers were used.
- Google Chrome 4 NPS: 199384 Ply: 9
- Opera 10.10 NPS: 31540 Ply: 9
- Firefox 3.6 NPS: 30313 Ply: 7
- Internet Explorer 8: 12513 Ply: 7
Hardware:
Windows 7 Home Premium 64-bit
Intel Core 2 Quad Q8300 @ 2.50gHz
6GB DDR2
No CPU intensive tasks were running during the benchmark. Tests were conducted in this order:
Firefox, Chrome, Opera, IE.
Peter
Nodes:264129 Score:-120 Ply:10 NPS:263865.1348651349 e7e5
Mac OS X 10.6.2 (Snow Leopard)
Dual quad core Xeon E5520 (Nehalem) @ 2.26GHz
6GB 1066 MHz DDR3
-
- Posts: 660
- Joined: Sat Dec 05, 2009 5:13 am
- Location: Colorado, USA
Re: Ajax chess
Must be the Nehalem. I didn't think Safari was so fastzullil wrote:Safari-4.0.4 (64 bit)alpha123 wrote:In opening position (after white plays 1. e4):
Latest stable versions of all browsers were used.
- Google Chrome 4 NPS: 199384 Ply: 9
- Opera 10.10 NPS: 31540 Ply: 9
- Firefox 3.6 NPS: 30313 Ply: 7
- Internet Explorer 8: 12513 Ply: 7
Hardware:
Windows 7 Home Premium 64-bit
Intel Core 2 Quad Q8300 @ 2.50gHz
6GB DDR2
No CPU intensive tasks were running during the benchmark. Tests were conducted in this order:
Firefox, Chrome, Opera, IE.
Peter
Nodes:264129 Score:-120 Ply:10 NPS:263865.1348651349 e7e5
Mac OS X 10.6.2 (Snow Leopard)
Dual quad core Xeon E5520 (Nehalem) @ 2.26GHz
6GB 1066 MHz DDR3

That's pretty impressive. What does Chrome get on your hardware, I want to see if it's just the hardware or Safari has super powers.
Peter
-
- Posts: 6442
- Joined: Tue Jan 09, 2007 12:31 am
- Location: PA USA
- Full name: Louis Zulli
Re: Ajax chess
Safari is very fast. I may compare with Chrome later, but I can tell you that Safari 4.0.4 (64 bit) running under OS 10.6.2 on my 2GHz Core 2 Duo MacBook was getting 150000 NPS. I can do a precise test later, when I have access to that machine.alpha123 wrote: Must be the Nehalem. I didn't think Safari was so fast.
That's pretty impressive. What does Chrome get on your hardware, I want to see if it's just the hardware or Safari has super powers.
Peter