3

I want to create a 2 player chess game. What HTML and JS resources are available for creating a chess board with ability to move the pieces? (note: I dont want a chess engine)

Also once I setup the chess board in browser how should I make the moves consistent with another person who has opened the same webpage in browser?

  • possible duplicate of [What are some good resources for writing a chess engine?](http://stackoverflow.com/questions/494721/what-are-some-good-resources-for-writing-a-chess-engine) – Curtis Apr 11 '12 at 08:46
  • 2
    Not a dupe, that question is about AI for chess, this one's about interfaces. – Fred Foo Apr 11 '12 at 08:49

2 Answers2

1

You could use the jQuery AJAX functions for communicating the moves between players (and a server) in real-time.

For the end-user interactivity, jQuery UI (official extension of jQuery). Particularly, the Droppable and/or Sortable controls.

(see the linked demos)

MrFusion
  • 912
  • 7
  • 16
0

You can have a look at the online chess application I am developing, the UI is written in HTML & javascript (jQuery/knockout.js) and the backend is written in Java running on Jetty 8 server.
I am making use of native websockets for communication. The application is hosted at http://www.chesshunt.com

Although the chess rules are all written at server side, but you can still see the board implementations in Javascript.

Anshu
  • 7,783
  • 5
  • 31
  • 41