1.4 KiB
1.4 KiB
Why
Three bugs prevent proper gameplay: table settings from the setup page are ignored by the game, the bot decision timer resets incorrectly causing wrong countdowns, and opponent hand cards never reveal during showdown or all-in situations per poker rules.
What Changes
- Settings persistence: Read
sessionStorageconfig in the main game page and apply it to initialize game state instead of hardcoding thetrainingMixpreset - Bot timer fix: Break the reactivity loop in
DecisionTimer.svelteso the countdown decrements correctly without being reset by$effectre-runs - Card reveal rules: Implement proper poker card visibility — show opponent hands at showdown, and when all-in players can no longer bet
Capabilities
New Capabilities
game-config-persistence: Loading table configuration from setup page into the game sessioncard-reveal-rules: Showing opponent hole cards according to poker showdown and all-in rules
Modified Capabilities
decision-timer: Fixing countdown reset behavior so timer decrements correctly per second
Impact
src/routes/+page.svelte— read sessionStorage config, apply to game statesrc/lib/components/DecisionTimer.svelte— fix reactivity loopsrc/lib/components/PlayerSeat.svelte— add card reveal logicsrc/lib/components/PokerTable.svelte— pass reveal context to PlayerSeat