feat(game): add All-in logic and side pots with Raise hover window
📌 Description
- Add deckRef and communityCardsRef to access latest state in setTimeout
- Fix turn/river deal to preserve existing community cards
- Use refs instead of closure state for card dealing
- Add proper delays (1200ms preflop→flop, 1400ms flop→turn→river)
- Ensure flop cards remain when adding turn/river"
🔗 Lien vers l'issue
✅ Type de changement
-
Feature (nouvelle fonctionnalité) -
Fix (correction de bug) -
Refactor (pas de changement fonctionnel) -
Docs (documentation) -
Chore (maintenance technique) -
Hotfix (urgence)
🧪 Comment tester
✅ Checklist
-
Tests unitaires ajoutés/mis à jour -
Documentation mise à jour -
Pipeline CI vert -
Relu par un reviewer
👥 Reviewers requis
-
Backend (@azra, @soheil) -
Frontend (@mohamed, @yigit) -
Sécurité (@linda, @massi) -
BDD (@elhadj)
🚨 Impact potentiel
-
Breaking change -
Performance -
Sécurité