summaryrefslogtreecommitdiff
path: root/src/engine/visual/placeOnBoard.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/visual/placeOnBoard.js
parent99c5056ffc4adec03f29730869158e5f80bc4304 (diff)
add liberties
Diffstat (limited to 'src/engine/visual/placeOnBoard.js')
-rw-r--r--src/engine/visual/placeOnBoard.js28
1 files changed, 14 insertions, 14 deletions
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 = {