mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Revert "pseudo_legal() and MOVE_NONE"
This reverts commit 33d9548218 ,
which crashed in DEBUG mode because of the following assert in position.h
````
Assertion failed: (is_ok(m)), function capture, file ./position.h, line 369.
````
No functional change
This commit is contained in:
@@ -579,7 +579,6 @@ bool Position::legal(Move m) const {
|
||||
/// Position::pseudo_legal() takes a random move and tests whether the move is
|
||||
/// pseudo legal. It is used to validate moves from TT that can be corrupted
|
||||
/// due to SMP concurrent access or hash position key aliasing.
|
||||
/// MOVE_NONE is represented as SQ_A1 to SQ_A1 which is never pseudo_legal.
|
||||
|
||||
bool Position::pseudo_legal(const Move m) const {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user