Add console renderer base and fix load() issues

This commit is contained in:
Dorian HAMDANI
2025-04-07 09:01:04 +02:00
parent 213a8ccff1
commit 5db5fe280f
3 changed files with 81 additions and 120 deletions

View File

@@ -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';