From b33eaefd025803f4068f037ac52ff03834cb70fd Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Mon, 28 Dec 2020 22:58:20 +0100 Subject: [PATCH] Fix typo --- aztec_diamond.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aztec_diamond.js b/aztec_diamond.js index e975356..4a21a82 100644 --- a/aztec_diamond.js +++ b/aztec_diamond.js @@ -126,7 +126,7 @@ function sanitize(state) { const i = t[0].x + n - 0.5 const j = t[0].y + n - 0.5 const oi = i + direction.x - const oj = i + direction.y + const oj = j + direction.y const oti = state.board[oj][oi] if (oti === undefined) { // no neighbour