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/visual/placeOnBoard.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/engine/visual') diff --git a/src/engine/visual/placeOnBoard.js b/src/engine/visual/placeOnBoard.js index 4eea0d6..6e04e0d 100644 --- a/src/engine/visual/placeOnBoard.js +++ b/src/engine/visual/placeOnBoard.js @@ -7,22 +7,22 @@ const MEDIA_LISTENER = window.matchMedia("(max-width: 600px)") MEDIA_LISTENER.addEventListener("change", function() { Array.from(board.stones) - .forEach(x => { - Array.from(x) - .filter((x) => x !== undefined) - .map(y => { - y.update(MEDIA_LISTENER) - }) - }) + .forEach(x => { + Array.from(x) + .filter((x) => x !== undefined) + .map(y => { + y.update(MEDIA_LISTENER) + }) + }) Array.from(board.links) - .forEach(x => { - Array.from(x) - .filter((x) => x !== undefined) - .map(y => { - y.update(MEDIA_LISTENER) - }) - }) + .forEach(x => { + Array.from(x) + .filter((x) => x !== undefined) + .map(y => { + y.update(MEDIA_LISTENER) + }) + }) }); const PLACE_VALUES = { -- cgit v1.2.3