From 613db14f3dd492a67e298eb3058ef9ed6928cd56 Mon Sep 17 00:00:00 2001 From: Aubin DORIVAL Date: Mon, 24 Mar 2025 10:49:12 +0100 Subject: [PATCH] playable2 --- src/GomokuCell.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/GomokuCell.java b/src/GomokuCell.java index 0acb074..d1f9591 100644 --- a/src/GomokuCell.java +++ b/src/GomokuCell.java @@ -34,10 +34,7 @@ public class GomokuCell{ } public boolean isPlayable(){ - for (GomokuCell var : this.neighbour.values()) { - if (var.isPlayed()) return true; - } - return false; + return this.neighbour.size() > 0; } }