summaryrefslogtreecommitdiff
path: root/src/engine/moves.js
diff options
context:
space:
mode:
authornil <niljo@airmail.cc>2024-12-13 20:00:50 +0100
committernil <niljo@airmail.cc>2024-12-13 20:00:50 +0100
commit1b6275b4fbc4ab7bcd876938f807aad9ce1900a6 (patch)
treecd1c577a726f67afc2c276eb81ae1628edcdcd96 /src/engine/moves.js
parent99c5056ffc4adec03f29730869158e5f80bc4304 (diff)
add liberties
Diffstat (limited to 'src/engine/moves.js')
-rw-r--r--src/engine/moves.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/moves.js b/src/engine/moves.js
index 26158a0..694a482 100644
--- a/src/engine/moves.js
+++ b/src/engine/moves.js
@@ -6,11 +6,11 @@ export function isMoveLegal({
team = "none"
}) {
if (board.stones[position.y][position.x] != undefined) {
- return false
+ return false
}
if (!hasLiberties({position: position, team: team})) {
- return false
+ return false
}
return true