Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Free JavaScript chessboard [closed]

Could anybody suggest a free (as in freedom) and open source JavaScript chessboard? My plan is to hook it up with some server-side Python code, most probably it will be the flask web framework.

I need a really minimal set of features:

  • a way to display a position on the board (not only the initial one) when generating the HTML code by the server-side script. The position can be stored in a list of lists (to emulate a two-dimensional array) and optionally in a FEN (Forsyth-Edwards Notation) string.
  • a way to make moves (by dragging pieces with the mouse cursor) and have the moves automatically submitted to the server-side script via HTTP POST. Validation of moves by the JavaScript code is not mandatory, because I can do this server-side.
like image 286
jedi_coder Avatar asked Aug 21 '10 14:08

jedi_coder


3 Answers

I just released http://chessboardjs.com at v0.1.0 and it seems to fit all of your requirements.

It's open source under the MIT license (ie: as in freedom)

like image 189
Chris Oakman Avatar answered Oct 18 '22 21:10

Chris Oakman


You can check this: htmlchess.sourceforge.net

like image 40
Alejandro Martin Avatar answered Oct 18 '22 20:10

Alejandro Martin


Try pgn4web. It supports PGN strings and even Chess960. Very easy to customize.

like image 35
Abhishek Avatar answered Oct 18 '22 21:10

Abhishek