fix gen
This commit is contained in:
@@ -52,8 +52,7 @@ public class GomokuBoard{
|
|||||||
nextLine = new GomokuCell(colors == null ? Color.NIL: colors[i+1][0]);
|
nextLine = new GomokuCell(colors == null ? Color.NIL: colors[i+1][0]);
|
||||||
GomokuCell.link(act, nextLine, Cardinal.S);
|
GomokuCell.link(act, nextLine, Cardinal.S);
|
||||||
}
|
}
|
||||||
|
for (int j = 0; j < width; j++) {
|
||||||
for (int j = 1; j < width; j++) {
|
|
||||||
if (top != null) {
|
if (top != null) {
|
||||||
GomokuCell.link(act, top.getNeighbour(Cardinal.W), Cardinal.NW);
|
GomokuCell.link(act, top.getNeighbour(Cardinal.W), Cardinal.NW);
|
||||||
GomokuCell.link(act, top, Cardinal.N);
|
GomokuCell.link(act, top, Cardinal.N);
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ public class GomokuCell{
|
|||||||
//------------------Overides--------------------------
|
//------------------Overides--------------------------
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
switch (this.getSate()) {
|
switch (this.getState()) {
|
||||||
case Color.NIL:
|
case Color.NIL:
|
||||||
return ".";
|
return ".";
|
||||||
case Color.BLACK:
|
case Color.BLACK:
|
||||||
|
|||||||
Reference in New Issue
Block a user