Cosmetic change

This commit is contained in:
Peter Osterlund 2019-09-01 16:42:43 +02:00
parent 514f2900bd
commit 11843578d5

View File

@ -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()) {