mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-13 01:22:41 +01:00
DroidFish: Fixed crash when engine did not report a ponder move.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.petero.droidfish"
|
||||
android:versionCode="50"
|
||||
android:versionCode="51"
|
||||
android:versionName="1.44"
|
||||
android:installLocation="auto">
|
||||
<supports-screens android:largeScreens="true"
|
||||
|
||||
@@ -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