fix(game): correct turn progression and action buttons
📌 Description
fix(game): complete bot gameplay fixes
- Fix turn order after bot fold (game no longer goes to showdown)
- Ensure player gets turn after bot action
- Add proper phase progression (preflop → flop → turn → river → showdown)
- Fix timer activation on player turn
- Add debug logs for turn tracking
- Implement correct heads-up poker rules (SB first preflop, BB first postflop)
- Handle auto-CHECK/auto-FOLD on timeout
Now bot gameplay works as expected: bot plays → player turn → buttons clickable → timer visible → actions work → next player
🔗 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é