Fix get() method in GomokuBoard and save() method in GomokuGame
This commit is contained in:
@@ -147,13 +147,13 @@ public class GomokuGame {
|
||||
// Write the board
|
||||
for (int i = 0; i < this.getBoard().getHeight(); ++i) {
|
||||
for (int j = 0; j < this.getBoard().getWidth(); ++j) {
|
||||
char c = ' ';
|
||||
char c;
|
||||
switch (board.get(i, j).getState()) {
|
||||
case BLACK:
|
||||
c = 'X';
|
||||
break;
|
||||
case WHITE:
|
||||
|
||||
c = 'O';
|
||||
break;
|
||||
case NIL:
|
||||
c = '.';
|
||||
|
||||
Reference in New Issue
Block a user