pastilhas
f68098657b
feat: implement game-over logic with time and hint limits
- Add configurable timeLimit to GameOptions (default 600 seconds / 10 minutes)
- Time limit applies to all difficulty levels (harder puzzles = more time pressure)
- Implement game-over triggers:
1. Time limit exceeded: timeValue >= timeLimit → 'Time's up!'
2. Hint penalty limit: hintsUsed * penalty >= 500 → 'Too many hints!'
- Hint limits by difficulty:
- Easy: 20 hints max (20 × 25 = 500 points)
- Medium: 10 hints max (10 × 50 = 500 points)
- Hard: 5 hints max (5 × 100 = 500 points)
- Add gameOverReason to ScoreManager to display specific failure reason
- Timer stops on game-over
- Update example app to show game-over reason
- Both conditions checked during gameplay before win condition
2025-10-22 21:48:33 +01:00
..
2025-10-22 21:48:33 +01:00
2025-10-15 23:06:01 +01:00
2025-10-15 17:29:53 +01:00
2025-10-19 17:59:12 +01:00
2025-10-15 17:29:53 +01:00