From 1b6275b4fbc4ab7bcd876938f807aad9ce1900a6 Mon Sep 17 00:00:00 2001 From: nil Date: Fri, 13 Dec 2024 20:00:50 +0100 Subject: add liberties --- src/engine/moves.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/engine/moves.js') 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 -- cgit v1.2.3