From 360af9a327c0ce6e5780d38a18a2323eb5b0fb6e Mon Sep 17 00:00:00 2001 From: rooklift <16438795+rooklift@users.noreply.github.com> Date: Sat, 28 May 2022 21:44:52 +0100 Subject: [PATCH] Update board_drawer.js --- src/modules/board_drawer.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/modules/board_drawer.js b/src/modules/board_drawer.js index 86219a97..f9739939 100644 --- a/src/modules/board_drawer.js +++ b/src/modules/board_drawer.js @@ -105,16 +105,17 @@ let board_drawer_prototype = { if (width !== this.width || height !== this.height) { - for (let x = 0; x < 19; x++) { - for (let y = 0; y < 19; y++) { - this.hoshi_points[x][y] = false; + for (let x = 0; x < 19; x++) { + for (let y = 0; y < 19; y++) { + this.hoshi_points[x][y] = false; + } } - } - for (let s of handicap_stones(Math.min(width, height) > 13 ? 9 : 5, width, height, false)) { - let x = s.charCodeAt(0) - 97; - let y = s.charCodeAt(1) - 97; - this.hoshi_points[x][y] = true; + for (let s of handicap_stones(Math.min(width, height) > 13 ? 9 : 5, width, height, false)) { + let x = s.charCodeAt(0) - 97; + let y = s.charCodeAt(1) - 97; + this.hoshi_points[x][y] = true; + } } // Obviously we want to save the width / height / square_size... but we also save the state of relevant