change player name file
This commit is contained in:
@@ -2,8 +2,11 @@ import java.util.List;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class GomokuBoard {
|
public class GomokuBoard {
|
||||||
|
/** The firstcell in the board, at the top left of the board. */
|
||||||
private GomokuCell firstCell;
|
private GomokuCell firstCell;
|
||||||
|
/** The width of the GomokuBoard.*/
|
||||||
private int boardWith;
|
private int boardWith;
|
||||||
|
/** The height of the GomokuBoard.*/
|
||||||
private int bordHeight;
|
private int bordHeight;
|
||||||
|
|
||||||
//------------------Constructors--------------------------
|
//------------------Constructors--------------------------
|
||||||
|
|||||||
@@ -107,6 +107,13 @@ public class GomokuCell{
|
|||||||
//------------------Overides--------------------------
|
//------------------Overides--------------------------
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
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