Files
soroban-abacus-flashcards/apps/web
Thomas Hallock 780a7161bc feat(card-sorting): add auto-submit countdown for perfect sequences
When the card sequence is correct, a countdown timer now starts:
- Shows 3, 2, 1 in the submit button (1.5s per number)
- Auto-submits the solution when countdown reaches 0
- Countdown resets if sequence becomes imperfect
- Countdown disabled for spectators

This provides:
- Visual feedback that the sequence is correct
- Automatic submission without requiring a click
- Time for players to review before submission
- Smooth game flow when solving perfectly

Implementation:
- perfectCountdown state tracks current number (3, 2, 1, or null)
- First useEffect starts/resets countdown based on isSequenceCorrect
- Second useEffect decrements countdown every 1.5s and auto-submits at 0
- Button displays countdown number when active, otherwise shows checkmark

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-23 22:36:44 -05:00
..