Need private packages and team management tools?Check out npm Teams »

kokopu

1.3.1 • Public • Published

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

Install

npm i kokopu

DownloadsWeekly Downloads

5

Version

1.3.1

License

LGPL-3.0-or-later

Unpacked Size

410 kB

Total Files

85

Last publish

Collaborators

  • avatar