From 2eb2dd373c57bb68790033c41c4563c0cd7c058c Mon Sep 17 00:00:00 2001 From: Aubin DORIVAL Date: Mon, 31 Mar 2025 11:54:23 +0200 Subject: [PATCH] fix gen --- src/GomokuBoard.java | 3 +-- src/GomokuCell.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/GomokuBoard.java b/src/GomokuBoard.java index f93c90d..0dc4b51 100644 --- a/src/GomokuBoard.java +++ b/src/GomokuBoard.java @@ -52,8 +52,7 @@ public class GomokuBoard{ nextLine = new GomokuCell(colors == null ? Color.NIL: colors[i+1][0]); GomokuCell.link(act, nextLine, Cardinal.S); } - - for (int j = 1; j < width; j++) { + for (int j = 0; j < width; j++) { if (top != null) { GomokuCell.link(act, top.getNeighbour(Cardinal.W), Cardinal.NW); GomokuCell.link(act, top, Cardinal.N); diff --git a/src/GomokuCell.java b/src/GomokuCell.java index 5b9578c..d1aaf86 100644 --- a/src/GomokuCell.java +++ b/src/GomokuCell.java @@ -149,7 +149,7 @@ public class GomokuCell{ //------------------Overides-------------------------- @Override public String toString() { - switch (this.getSate()) { + switch (this.getState()) { case Color.NIL: return "."; case Color.BLACK: