From d08019bf756995f85728b7e5fc12bacebe3eae92 Mon Sep 17 00:00:00 2001 From: Aubin DORIVAL Date: Mon, 24 Mar 2025 10:49:01 +0100 Subject: [PATCH] playable --- src/GomokuCell.java | 7 +++++++ 1 file changed, 7 insertions(+) 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; + } + }