Add console renderer base and fix load() issues
This commit is contained in:
@@ -2,6 +2,7 @@ import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.Random;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.BufferedWriter;
|
||||
|
||||
public class GomokuGame {
|
||||
@@ -87,7 +88,7 @@ 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';
|
||||
|
||||
Reference in New Issue
Block a user