mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Do not make any assumption on the move in move_is_legal()
We must be able to filter out also moves where move_is_ok() is false. And actually we are. Tested on all the default position injecting a number from -1000000 to 1000000 casted to a Move. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
5fc8f86a4f
commit
2e46db4369
1 changed files with 0 additions and 1 deletions
|
@ -386,7 +386,6 @@ bool move_is_legal(const Position& pos, const Move m) {
|
|||
bool move_is_legal(const Position& pos, const Move m, Bitboard pinned) {
|
||||
|
||||
assert(pos.is_ok());
|
||||
assert(move_is_ok(m));
|
||||
assert(pinned == pos.pinned_pieces(pos.side_to_move()));
|
||||
|
||||
Color us = pos.side_to_move();
|
||||
|
|
Loading…
Add table
Reference in a new issue