/kokopu

A JavaScript library implementing the chess game rules and providing tools to read/write the standard chess file formats.

Primary LanguageJavaScriptGNU Lesser General Public License v3.0LGPL-3.0

Kokopu

Kokopu is a JavaScript library for chess applications. It implements the chess game rules, and provides tools to read/write the standard chess file formats (PGN, FEN, etc.).

https://www.npmjs.com/package/kokopu

Build Status

Download

https://kokopu.yo35.org/dist/kokopu.zip

Documentation

https://kokopu.yo35.org/

Features

  • Chess move generation.
  • Check, checkmate and stalemate detection.
  • Move legality check.
  • Algrebraic notation parsing and generation.
  • FEN notation parsing and generation.
  • PGN file parsing (including advanced PGN features such as commentaries, sub-variations, NAGs, non-standard starting position...).
  • Support Chess960 (also known as Fischer Random Chess).

Used by