From b32e9146b765752259f787912120654d62886be9 Mon Sep 17 00:00:00 2001 From: Aubin DORIVAL Date: Mon, 31 Mar 2025 08:36:31 +0200 Subject: [PATCH] change player name file --- src/GomokuBoard.java | 3 +++ src/GomokuCell.java | 9 ++++++++- src/{player.java => Player.java} | 0 3 files changed, 11 insertions(+), 1 deletion(-) rename src/{player.java => Player.java} (100%) diff --git a/src/GomokuBoard.java b/src/GomokuBoard.java index be7c6b0..b82169e 100644 --- a/src/GomokuBoard.java +++ b/src/GomokuBoard.java @@ -2,8 +2,11 @@ import java.util.List; import java.util.ArrayList; public class GomokuBoard { + /** The firstcell in the board, at the top left of the board. */ private GomokuCell firstCell; + /** The width of the GomokuBoard.*/ private int boardWith; + /** The height of the GomokuBoard.*/ private int bordHeight; //------------------Constructors-------------------------- diff --git a/src/GomokuCell.java b/src/GomokuCell.java index 24fccaf..36862ed 100644 --- a/src/GomokuCell.java +++ b/src/GomokuCell.java @@ -107,6 +107,13 @@ public class GomokuCell{ //------------------Overides-------------------------- @Override public String toString() { - return this.neighbour.toString() + this.state.toString(); + switch (this.getSate()) { + case Color.NIL: + return " "; + + default: + break; + } + return this.state.toString(); } } diff --git a/src/player.java b/src/Player.java similarity index 100% rename from src/player.java rename to src/Player.java