mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +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) {
|
public void redraw(BitboardReversi gameCopy) {
|
||||||
clearAll();
|
clearAll();
|
||||||
long[] board = gameCopy.getBoard();
|
long[] board = gameCopy.getBoard();
|
||||||
loopOverBoard(board[0], (i) -> drawDot(Color.WHITE, i));
|
loopOverBoard(board[0], (i) -> drawDot(Color.BLACK, i));
|
||||||
loopOverBoard(board[1], (i) -> drawDot(Color.BLACK, i));
|
loopOverBoard(board[1], (i) -> drawDot(Color.WHITE, i));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -45,7 +45,7 @@ public class ReversiBitCanvas extends BitGameCanvas<BitboardReversi> implements
|
|||||||
|
|
||||||
public void drawLegalMove(int cell, int player) {
|
public void drawLegalMove(int cell, int player) {
|
||||||
Color innerColor;
|
Color innerColor;
|
||||||
if (player == 1) {
|
if (player == 0) {
|
||||||
innerColor = new Color(0.0f, 0.0f, 0.0f, 0.6f);
|
innerColor = new Color(0.0f, 0.0f, 0.0f, 0.6f);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user