From b0e7b2f3dcd36e4851d2701dc562e2bc7b7444d5 Mon Sep 17 00:00:00 2001 From: Aubin DORIVAL Date: Mon, 14 Apr 2025 09:53:12 +0200 Subject: [PATCH] test --- src/GomokuGame.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GomokuGame.java b/src/GomokuGame.java index 1b0bd99..2d311e4 100644 --- a/src/GomokuGame.java +++ b/src/GomokuGame.java @@ -85,7 +85,7 @@ public class GomokuGame { } GomokuGame g = new GomokuGame(false);// metre true ou fals si in veut l'affichage ou non g.board = new GomokuBoard(sizeX, sizeY); - g.board.get(0, 0).setState(Color.BLACK); + g.board.get(sizeX / 2, sizeY / 2).setState(Color.BLACK); g.player1 = new Human("un", Color.WHITE, nbToken); g.player2 = new GomokuAI("deux", Color.BLACK, nbToken - 1); System.out.println(g.board); @@ -146,7 +146,7 @@ public class GomokuGame { } System.out.println(board.countMax(board.countAlignedCells(currentPlay))); if (NB_CELL_PLAY <= board.countMax(board.countAlignedCells(currentPlay))) { - System.out.println("Le joueur " + this.currentPlayer + "a gagné !"); + System.out.println("Le joueur " + this.currentPlayer + " a gagné !"); // this.renderer.updateStatus("Le joueur " + this.currentPlayer + "a gagné !"); return; }