This commit is contained in:
Aubin DORIVAL
2025-04-07 09:06:13 +02:00
parent df87eb7d45
commit 40549fad90

View File

@@ -1,8 +1,10 @@
import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Random;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.BufferedReader;
public class GomokuGame {
@@ -53,14 +55,13 @@ public class GomokuGame {
this.board = new GomokuBoard(15, 15);
this.colorP1 = colorPlayer1;
this.currP = this.player1.color == Color.WHITE ? 1: 2;
this.currP = this.player1.color == Color.WHITE ? 1 : 2;
this.nbTokens1 = 60;
this.nbTokens2 = 60;
}
public void startGame() {
}
public boolean save(Path filename) {
@@ -91,7 +92,7 @@ public class GomokuGame {
c = 'X';
break;
case WHITE:
break;
case NIL:
c = '.';