pastilhas
8bbc6aac9b
exporting version
2025-11-02 16:40:24 +00:00
pastilhas
7800acaf56
feat: add timeLimit option and time-based game-over logic
...
- Add timeLimit to GameOptions (default 600 seconds)
- Game-over triggers when time limit exceeded
- Remove all efficiency-based game-over logic
- Pass timeLimit through to useScore
- Check time limit during started and has-key states
2025-10-22 22:07:59 +01:00
pastilhas
7ccf7cdd55
refactor: simplify scoring to remove efficiency-based complexity
...
- Remove efficiency calculation and game-over at 150%
- Remove optimal steps tracking and complex logic timing
- Simplify to time + keystrokes only scoring
- New formula: score = min(1000, (1000 - time_penalty - keystroke_penalty) × size_multiplier)
- time_penalty = seconds / 10
- keystroke_penalty = keystrokes / 2
- size_multiplier = max(1.0, (rows × cols) / 500)
- Maze size-based multiplier rewards larger mazes
- Remove optimalSteps and efficiency from ScoreManager type
- Pass rows and cols to useScore for size calculation
- Align with vim-sudoku's simplified scoring approach
2025-10-22 22:03:44 +01:00
pastilhas
a69b7bbb5f
organized types
2025-10-19 16:11:38 +01:00
pastilhas
252027dab2
no more ReturnType<typeof>
2025-10-19 15:55:52 +01:00
pastilhas
a6f066d738
scoreManager implemented flawlessly
2025-10-19 15:29:01 +01:00
pastilhas
ee58ab25fb
working on refactor
2025-10-17 03:07:07 +01:00
pastilhas
c8eb84ce7e
first
2025-10-14 13:33:51 +01:00