Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Should be fairly easy to make this understand the basic movements. Add some node-js multiplayer and off you go.


I actually built almost exactly this on top of dotcloud a while back:

http://chessjs-anirishduck.dotcloud.com/new

I initially based it off a wild idea my coworker and I had about a chess variant where any piece that captures another piece has the option of becoming that piece. I then expanded it with several other chess rule variants, including vanilla chess.

One thing worth mentioning is that the rules for chess are deceptively complex. Especially when it comes to valid moves avoiding check and moving out of check. See:

https://github.com/AnIrishDuck/chess.js/blob/master/chessjs/...


That actually sounds like a fun little practice project.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: