mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-19 12:12:17 +01:00
DroidFish: Fixed crash when engine did not report a ponder move.
This commit is contained in:
@@ -430,6 +430,8 @@ public class TextIO {
|
||||
* @return True if move is valid in position pos, false otherwise.
|
||||
*/
|
||||
public static final boolean isValid(Position pos, Move move, ArrayList<Move> moves) {
|
||||
if (move == null)
|
||||
return false;
|
||||
if (moves == null) {
|
||||
moves = new MoveGen().pseudoLegalMoves(pos);
|
||||
moves = MoveGen.removeIllegal(pos, moves);
|
||||
|
||||
Reference in New Issue
Block a user