Files
vim-sudoku/example
pastilhas 8db4455dc5 feat: implement scoring system and win condition (Phase 50)
- Add useTimer hook for elapsed time tracking
- Add useScore hook with comprehensive metrics:
  - Total keystrokes (all keys)
  - Edit keystrokes (only editing keys)
  - Optimal keystrokes (empty cells × 3)
  - Efficiency percentage (optimal/edit × 100)
  - Final score (70% efficiency + 30% time-based)
- Win condition detects board completion only in normal mode
- Track all keystrokes with timestamps in useGame
- Update example app with full scoreboard display
- Expose boardRef in BoardManager for state checking
- Adjust easy mode to 5 removed cells for testing
2025-10-22 20:42:50 +01:00
..
2025-10-15 17:29:53 +01:00
2025-10-15 17:29:53 +01:00
2025-10-15 17:29:53 +01:00
2025-10-15 17:29:53 +01:00
2025-10-15 17:29:53 +01:00
2025-10-15 17:29:53 +01:00
2025-10-15 17:29:53 +01:00
2025-10-15 23:06:01 +01:00
2025-10-19 17:59:12 +01:00
2025-10-19 17:59:12 +01:00

example

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.2.23. Bun is a fast all-in-one JavaScript runtime.