This commit is contained in:
Peter J. Holzer 2020-12-28 22:58:20 +01:00 committed by Peter J. Holzer
parent 367a2bc428
commit b33eaefd02
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ function sanitize(state) {
const i = t[0].x + n - 0.5 const i = t[0].x + n - 0.5
const j = t[0].y + n - 0.5 const j = t[0].y + n - 0.5
const oi = i + direction.x const oi = i + direction.x
const oj = i + direction.y const oj = j + direction.y
const oti = state.board[oj][oi] const oti = state.board[oj][oi]
if (oti === undefined) { if (oti === undefined) {
// no neighbour // no neighbour