mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 02:44:50 +00:00
made black start again cuz it was annoying me that white was starting
This commit is contained in:
@@ -33,8 +33,8 @@ public class ReversiBitCanvas extends BitGameCanvas<BitboardReversi> implements
|
||||
public void redraw(BitboardReversi gameCopy) {
|
||||
clearAll();
|
||||
long[] board = gameCopy.getBoard();
|
||||
loopOverBoard(board[0], (i) -> drawDot(Color.WHITE, i));
|
||||
loopOverBoard(board[1], (i) -> drawDot(Color.BLACK, i));
|
||||
loopOverBoard(board[0], (i) -> drawDot(Color.BLACK, i));
|
||||
loopOverBoard(board[1], (i) -> drawDot(Color.WHITE, i));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -45,7 +45,7 @@ public class ReversiBitCanvas extends BitGameCanvas<BitboardReversi> implements
|
||||
|
||||
public void drawLegalMove(int cell, int player) {
|
||||
Color innerColor;
|
||||
if (player == 1) {
|
||||
if (player == 0) {
|
||||
innerColor = new Color(0.0f, 0.0f, 0.0f, 0.6f);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user