Friday, June 8th, 2007

Ajax Chinese Chess

Category: Games

Kevin Hoang Le and his team have created an Ajax Chinese Chess game.

It’s true Ajax (as opposed to just Javascript) since all the move computations of the “computer” player is done on the server and the data is passed in JSON format back and forth.

The Javascript code is entirely unobtrusive and weights only about 30 kB (uncompressed). This code uses the excellent Mootools and JavaScript VectorGraphics libraries. On the server side, it’s built in Python using the Django framework.

Ajax Chinese Chess features the following: animation, drag and drop, fast loading (thanks to lightweight Javascript code mentioned above and small footprint Mootools), no plugin required and cross browsers/cross platforms.

Chinese Chess

Posted by Dion Almaer at 9:54 am
10 Comments

+++--
3.7 rating from 97 votes

10 Comments »

Comments feed TrackBack URI

omg. that’s awesome! i have a feeling nothing will get done today. :(

Comment by Liming — June 8, 2007

Since there are already a couple of Mootools news add a Mootools category.

Nice demo btw.

Comment by Mootooler — June 8, 2007

Great work. Very responsive and fast. Everything on that screen is a DIV tag. If you have Mozilla or FIrefox, to see the individual DIV tags move, go to the game and then paste the following into the URL and hit return:

javascript:{var R=0, x1=.1, y1=.05, x2=.25, y2=.24, x3=1.6, y3=.24, x4=300, y4=200, x5=300, y5=200, I=document.getElementsByTagName(“div”), L=I.length; setInterval(function (){for(var i=0; i-L; i++){var S=I[ i ].style; S.position=’absolute’; S.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+”px”; S.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+”px”}R++},5); void(0)}

Comment by dorek — June 8, 2007

what the hell is the rules? :)

Comment by Anonymous — June 9, 2007

add me ,let me join it,I’m good at Chinese chess!!

Comment by wow power leveling — June 10, 2007

good………..

Comment by SE — June 17, 2007

Great ! but the computer seems not smart…

Comment by JeffChen — June 26, 2007

this is less and less popular, even in China! Too difficult.

Comment by wow power leveling — July 7, 2007

Good stuff, but sometimes the computer seems to be hanged

Comment by Tuan Nguyen — September 23, 2007

great great game, Well done.

There’s very good programmer in there I wish he part of of my team

Comment by lagachette — November 24, 2007

Leave a comment

You must be logged in to post a comment.