1.1 KiB
1.1 KiB
1. Settings Persistence
- 1.1 Add sessionStorage read logic in
+page.svelteto parsepoker-configon mount - 1.2 Apply parsed config values to
createInitialStateinstead of hardcodingtrainingMixpreset - 1.3 Add fallback to
trainingMixpreset when no config exists or parsing fails
2. Bot Timer Fix
- 2.1 Refactor
DecisionTimer.svelte$effect to anchor only onactiveandduration, notremaining - 2.2 Ensure interval callback updates
remainingwithout triggering effect re-run - 2.3 Verify countdown follows exact sequence (e.g., 10→9→8→...→0) without resets
3. Card Reveal Rules
- 3.1 Create
shouldRevealCards(player, gameState)helper function in PokerTable or utility module - 3.2 Implement showdown reveal: show cards when
bettingRound === 'showdown'and player hasn't folded - 3.3 Implement all-in reveal: detect when betting is no longer possible and all-in players should show
- 3.4 Pass
revealCardsboolean prop from PokerTable to each PlayerSeat - 3.5 Update PlayerSeat to use
revealCardsprop instead of currentisHuman || holeCards.length === 0check