mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
fixed? getLegalMoves
This commit is contained in:
@@ -93,12 +93,12 @@ public class BitboardReversi extends BitboardGame<BitboardReversi> {
|
||||
|
||||
final long nextLegalMoves = getLegalMoves2();
|
||||
|
||||
if (nextLegalMoves <= 0) {
|
||||
if (nextLegalMoves == 0) {
|
||||
nextTurn();
|
||||
|
||||
final long skippedLegalMoves = getLegalMoves2();
|
||||
|
||||
if (skippedLegalMoves <= 0) {
|
||||
if (skippedLegalMoves == 0) {
|
||||
final long black = getPlayerBitboard(0);
|
||||
final long white = getPlayerBitboard(1);
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ public class BitboardTicTacToe extends BitboardGame<BitboardTicTacToe> {
|
||||
return GameState.WIN;
|
||||
}
|
||||
|
||||
if (getLegalMoves2() <= 0L || checkEarlyDraw()) {
|
||||
if (getLegalMoves2() == 0L || checkEarlyDraw()) {
|
||||
return GameState.DRAW;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user