chesslablab / php-chess

A chess library for PHP.
https://chesslablab.github.io/php-chess/
MIT License
102 stars 46 forks source link

Write tests for Stockfish to play against itself #482

Closed programarivm closed 7 months ago

programarivm commented 7 months ago

It seems as if src/UciEngine/Stockfish.php is randomly generating unexpected LAN moves in its play() method that will make src/Variant/Classical/PGN/Move.php throw an unknown notation exception. A test needs to be written for Stockfish to play against itself in order to spot such moves. See https://github.com/chesslablab/chess-server/issues/256