From a5201cdde9b2bb2b981ce09cb9573344d3545c77 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Mon, 16 Dec 2024 05:23:34 -0500 Subject: [PATCH] [O] Comment --- src/App.svelte | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index da62cc1..662cb97 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -95,14 +95,13 @@ if (editMode) { cat.solution.forEach(edge => { const [ sx, sy, ex, _ ] = edge - const isVertical = sx === ex - if (isVertical) { + if (sx === ex) { // Vertical edge // The commented lines will show the solution (edges) - // vedgeStates[sy * (eCols) + sx] = 1 + // vStates[sy * (eCols) + sx] = 1 if (ex != cols) numbers[sy * cols + sx] += 1 if (sx != 0) numbers[sy * cols + sx - 1] += 1 } else { - // hedgeStates[sy * (eCols) + sx] = 1 + // hStates[sy * (eCols) + sx] = 1 if (ex != rows) numbers[sy * cols + sx] += 1 if (sx != 0) numbers[(sy - 1) * cols + sx] += 1 }