change player name file
This commit is contained in:
@@ -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--------------------------
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user