From f5886e5376d61ade107f1dc109d01dde2733aea4 Mon Sep 17 00:00:00 2001 From: Andre Padez Date: Thu, 30 Oct 2025 23:11:14 +0000 Subject: [PATCH] test: revert FOODS_PER_LEVEL back to 2 for final testing - Change from 1 back to 2 for normal gameplay - Now need 2 foods to level up instead of every food - Score sequence should be: +1, +1, lvlup, +2, +2, lvlup, +3, +3, etc. - Testing that score calculation works correctly with threshold of 2 --- src/useGameStatus/useGameStatus.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useGameStatus/useGameStatus.ts b/src/useGameStatus/useGameStatus.ts index 13e7721..c847921 100755 --- a/src/useGameStatus/useGameStatus.ts +++ b/src/useGameStatus/useGameStatus.ts @@ -5,7 +5,7 @@ import type { UseCursorType } from "../useCursor"; import type { UseFoodType } from "../useGame/useFood"; const INITIAL_FPS = 5; -const FOODS_PER_LEVEL = 1; +const FOODS_PER_LEVEL = 2; export function useGameStatus( boardManager: UseBoardType,