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.io.IOException;
import java.nio.file.Files; import java.nio.file.Files;
import java.nio.file.Path; import java.nio.file.Path;
import java.util.Random; import java.util.Random;
import java.io.BufferedWriter; import java.io.IOException;
import java.io.BufferedReader;
public class GomokuGame { public class GomokuGame {
@@ -53,14 +55,13 @@ public class GomokuGame {
this.board = new GomokuBoard(15, 15); this.board = new GomokuBoard(15, 15);
this.colorP1 = colorPlayer1; 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.nbTokens1 = 60;
this.nbTokens2 = 60; this.nbTokens2 = 60;
} }
public void startGame() { public void startGame() {
} }
public boolean save(Path filename) { public boolean save(Path filename) {