I am parsing the 2013-01 database file from Lichess (15Mb download), and encountered the following error:Ĭhess: pgn decode error chess: could not decode algebraic notation Rd1d2 for position 3r1rk1/1p1bqp2/p1pR1p1p/8/4P3/P4B2/1PP1QPP1/3R3K w - 2 22 on move 22 Move_test.go:266: rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1 I have added a test function to compare your ValidMoves function against the Perft Results obtained from. PGN supplied as an optional parameter to the NewGame constructor: initialize uci with new game if err := eng.
set up engine to use stockfish exe eng, err := uci.
"fmt" "time" "/notnil/chess" "/notnil/chess/uci"