diff --git a/poker-paf/game.php b/poker-paf/game.php index ca49625..f261c23 100644 --- a/poker-paf/game.php +++ b/poker-paf/game.php @@ -468,9 +468,11 @@ $players[0]['is_dealer'] = 1; // Mettre à jour aussi dans la variable locale po function GetCurrentBlind() { let blinds = []; - players.forEach(player => { - blinds.push(player.blind); - }); + + blinds.push( + blind: , + ); + current_blind = Math.max(...blinds); console.log("Blind actuel recalculé :", current_blind); }