mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-23 19:34:08 +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);
|
ArrayList<Move> moves = movesToSearch(sr);
|
||||||
|
// Check if user set up a position where computer has no valid moves
|
||||||
if (moves.size() == 0) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
// If only one move to search, play it without searching
|
||||||
if (moves.size() == 1) {
|
if (moves.size() == 1) {
|
||||||
Move bestMove = moves.get(0);
|
Move bestMove = moves.get(0);
|
||||||
if (canClaimDraw(sr.currPos, posHashList, posHashListSize, bestMove).isEmpty()) {
|
if (canClaimDraw(sr.currPos, posHashList, posHashListSize, bestMove).isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user