change player name file

This commit is contained in:
Aubin DORIVAL
2025-03-31 08:36:31 +02:00
parent 646fe6b9f1
commit b32e9146b7
3 changed files with 11 additions and 1 deletions

View File

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

View File

@@ -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();
}
}