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?

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
  • 890
  • 7
  • 15
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,697
  • 5
  • 29
  • 41