feat(ui): sweep bet chips into the pot at the end of each betting round

Aperta
#846 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend, game-dev

Direzione di ricerca

Start by locating the table animation code around useTableAnimations and how the pot position and main/side pots are represented. Trace what happens when a betting round closes, then identify where bet-chip positions and reduced-motion preferences are handled. Done means chips animate into the correct pot and disappear at round end, while reduced-motion clears them without a sweep.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

animation feature

Overview

At the end of each betting round, all players' bet chips sweep into the middle and merge into the pot (main pot / side pots), then disappear into the pot total.

Steps

  1. When the street closes (round advances), collect all current bet-chip positions.
  2. Animate each stack sliding to the pot/centre — short eased move (~250–400ms).
  3. On arrival, the chips fade/merge into the pot total and are removed.
  4. Handle multiple pots (main + side) — chips route to the correct pot.
  5. Honour prefers-reduced-motion (chips just clear, pot updates, no sweep).

Notes

  • Pairs with the bet-move animation (sibling ticket). Uses the pot position + useTableAnimations.

Acceptance criteria

  • AC-1 At round end, bet chips sweep to the pot and disappear into the total.
  • AC-2 Correct routing for main/side pots; reduced-motion clears without the sweep.

🤖 Generated with Claude Code

Lingua principale
TypeScript
Stelle
2
Fork
5
Merge medio
22h 35m
PR unite (30g)
91

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di block52/ui

Tutte le issue di block52/ui

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.