We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$fen = new Chess\FEN("2Q5/8/8/8/p3Q3/P7/7p/1K4k1 b - - 0 53"); $fen->move('h1=Q');
should not throw:
Onspli\Chess\RulesException: King is in check. in /var/www/html/chesstats/vendor/onspli/chess/src/FEN.php on line 737
The text was updated successfully, but these errors were encountered:
Caused by promoting black pawn to white Queen - position after move is 2Q5/8/8/8/p3Q3/P7/8/1K4kQ and king is in check indeed. Promoting must be fixed.
2Q5/8/8/8/p3Q3/P7/8/1K4kQ
Sorry, something went wrong.
onspli
Successfully merging a pull request may close this issue.
should not throw:
The text was updated successfully, but these errors were encountered: