diff --git a/src/GomokuCell.java b/src/GomokuCell.java index 6a6662b..0acb074 100644 --- a/src/GomokuCell.java +++ b/src/GomokuCell.java @@ -33,4 +33,11 @@ public class GomokuCell{ return neighbour; } + public boolean isPlayable(){ + for (GomokuCell var : this.neighbour.values()) { + if (var.isPlayed()) return true; + } + return false; + } + }