mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-23 11:31:33 +01:00
Cosmetic change
This commit is contained in:
parent
514f2900bd
commit
11843578d5
|
@ -414,12 +414,13 @@ public class DroidComputerPlayer {
|
|||
}
|
||||
}
|
||||
|
||||
// If only one move to search, play it without searching
|
||||
ArrayList<Move> moves = movesToSearch(sr);
|
||||
// Check if user set up a position where computer has no valid moves
|
||||
if (moves.size() == 0) {
|
||||
listener.notifySearchResult(sr.searchId, "", null); // User set up a position where computer has no valid moves.
|
||||
listener.notifySearchResult(sr.searchId, "", null);
|
||||
return;
|
||||
}
|
||||
// If only one move to search, play it without searching
|
||||
if (moves.size() == 1) {
|
||||
Move bestMove = moves.get(0);
|
||||
if (canClaimDraw(sr.currPos, posHashList, posHashListSize, bestMove).isEmpty()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user