A JavaScript library implementing the chess game rules and providing tools to read/write the standard chess file formats.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
doc_src
src
test
.eslintrc.yml
.gitignore
.jsdoc.json
.travis.yml
CHANGELOG.md
LICENSE
Makefile
README.md
index.js
package.json

README.md

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 Chess 960 (also known as Fischer Random Chess).

Used by