playable
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user