Closed borro closed 11 years ago
_parseMove ignores $from, so do not correctly handle taking on pass.
Example:
$game = new ChessGameEngine(); $game->resetGame(); $game->moveSAN('c3', 'b1'); echo $game->renderFen();
Output:
rnbqkbnr/pppppppp/8/8/8/2N5/PPPPPPPP/R1BQKBNR b KQkq c2 1 1
https://github.com/ChessCom/Chess-Game/blob/master/library/ChessGame.php#L927
My mistake. It is necessary to use a method moveSquare.
_parseMove ignores $from, so do not correctly handle taking on pass.
Example:
Output:
https://github.com/ChessCom/Chess-Game/blob/master/library/ChessGame.php#L927