From 99c5056ffc4adec03f29730869158e5f80bc4304 Mon Sep 17 00:00:00 2001 From: nil Date: Fri, 13 Dec 2024 16:48:06 +0100 Subject: quickfix --- src/engine/liberty.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/engine/liberty.js') diff --git a/src/engine/liberty.js b/src/engine/liberty.js index 372057e..a006c62 100644 --- a/src/engine/liberty.js +++ b/src/engine/liberty.js @@ -17,8 +17,8 @@ export function hasLiberties({ .filter(z => 0 <= z.x && z.x < board.size && 0 <= z.y && z.y < board.size ) - .some(z => board.stones[z.x][z.y] == undefined ? + .some(z => board.stones[z.y][z.x] == undefined ? true : - board.stones[z.x][z.y].team == team + board.stones[z.y][z.x].team == team ) } -- cgit v1.2.3