diff --git a/src/game/boards/board.tsx b/src/game/boards/board.tsx index 8a8e955..b877d92 100644 --- a/src/game/boards/board.tsx +++ b/src/game/boards/board.tsx @@ -405,10 +405,10 @@ export function placeInAvailableSpace( direction === Direction.Right ? (a, b) => a.x - b.x : direction === Direction.Left - ? (a, b) => b.x - a.x - : direction === Direction.Up - ? (a, b) => b.y - a.y - : (a, b) => a.y - b.y + ? (a, b) => b.x - a.x + : direction === Direction.Up + ? (a, b) => b.y - a.y + : (a, b) => a.y - b.y ); for (let i = 0; i < nodes.length; i++) { diff --git a/src/game/gameLoop.ts b/src/game/gameLoop.ts index 0b8933d..46cc53b 100644 --- a/src/game/gameLoop.ts +++ b/src/game/gameLoop.ts @@ -104,6 +104,9 @@ watch(hasWon, hasWon => { } }); -setInterval(() => { - state.mouseActivity = [...state.mouseActivity.slice(-7), false]; -}, 1000 * 60 * 60); +setInterval( + () => { + state.mouseActivity = [...state.mouseActivity.slice(-7), false]; + }, + 1000 * 60 * 60 +);