Sunday, September 29, 2024

cm-chessboard; chessboard.js v2 = chessboard2

shaack/cm-chessboard: A JavaScript chessboard without dependencies. Rendered in SVG, coded in ES6. Views FEN, handles move input, animated, responsive, expandable @GitHub (MIT)

A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.

example online

cm-chessboard

cm-chessboard - npm


Category:SVG chess pieces - Wikimedia Commons

Chess - Wikipedia



most often used chessboard.js has issues running on touchscreens






An updated version of chessboard.js.
  • better mobile support
  • no dependencies
  • written in ClojureScript
  • improved API


You can integrate chessboard2 with the chess.js library to play against random moves.

No comments: