Chess.js Versions Save

A TypeScript chess library for chess move generation/validation, piece placement/movement, and check/checkmate/draw detection

v0.13.3

1 year ago

Bug Fixes

Changes

v0.13.2

2 years ago

Bug Fixes

  • [PGN] Ignore extraneous whitespace in PGN header (@jhlywa - 24d1c86ecdad7a545e65e4bdf48f7f6e29fcc61e)
  • [PGN] Allow FEN header without a SetUp header in sloppy PGN parser (@jhlywa - 35e3fbfbafce1295e386ccc160ddf368278f4ad8)

v0.13.1

2 years ago

Bug Fixes

  • [PGN] Ensure the strict parser always runs before sloppy parser (@jhlywa - 62914d6335d69aa143789da69dc112b7)
  • [API] Fix .ascii() function (@jhlywa - 450c7f1f51b46428495ca107354448a89378a10c)

v0.13.0

2 years ago

Enhancements

  • convert package to standard JS module (@justinfagnani - #318)
  • include the square in the output of .board() (@fitztrev - #312)

v0.12.1

2 years ago

Bug Fixes

  • [PGN] Fix duplication of last move when loading PGN containing trailing comments without a game termination marker (@jhlywa - 321a25e866b06caef306268f856d4bf639b05742)
  • [PGN] Fix PGN export that included unnecessary move disambiguators (@SyntaxBlitz - 1814427cd637a4de9ead30b0977973abad33808e)

v0.12.0

2 years ago

Enhancements

  • [SAN] Improve performance of SAN move parser by inferring the piece the user is moving (in both .move() and .load_pgn()) and restricting move generation to those piece types. This change resulted in a 50% performance improvement as measured through the unit tests. (@ejezisek - #275)

v0.11.0

3 years ago

Enhancements

Bug Fixes

v0.10.3

4 years ago

Enhancements

  • Added .board() function to return a 2D representation of the board (@jhlywa - f2a9baa6d)
  • Revamped documentation for .load_pgn() function (@svangordon - #149)
  • The minified version of the source code has been removed from version control.

Bug Fixes

  • [PGN] Fix bug where PGN parser fail to load PGN with a comment before the first move (@svangordon - #150)
  • [PGN] Fix bug where PGN data containing SetUp and FEN tags causes header information to be lost (@siansell - #154)

v0.10.2

7 years ago

Enhancements

  • [Parser] The sloppy parser now supports many variations of Long Algebraic Notation, such as: e2e4, e2-e4, Pe2e4, Pe2-e4, Qf3xf7+, e7xf8Q+ (capture and promotion), and e1-g1 (king-side castling). This parser will also catch and parse many non-standard methods of move disambiguation.

v0.10.1

7 years ago

Enhancements

  • [Parser] The code paths for load_pgn() and move() have been merged. Any future changes to the move parser will be available in both funtions.

Bug Fixes

  • [Parser] Fix bug where sloppy parser could not parse correctly disambiguated moves.