Minimum viable chess game in JavaScript.
clay-chess does not enforce a board UI, but a working board is shown in the example.
- Game ending conditions: insufficient material, fifty-move rule, threefold repetition, and time control (some of these can be enforced by the UI)
- Undo/redo is easy to add using the existing
this.moves
, but a more elegant way is to makethis.board
immutable.