Skip to content

Commit

Permalink
fix: calculate bb and sb.
Browse files Browse the repository at this point in the history
  • Loading branch information
ainilili committed Apr 10, 2024
1 parent b486f9a commit 4044bde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions state/game/texas/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func Reset(room *database.Room) (database.RoomGame, error) {
Room: room,
Players: players,
Pot: 0,
BB: (game.BB + 1) / len(players),
SB: (game.SB + 1) / len(players),
BB: (game.BB + 1) % len(players),
SB: (game.SB + 1) % len(players),
Pool: base[len(players)*2:],
MaxBetAmount: 20,
Round: "start",
Expand Down

0 comments on commit 4044bde

Please sign in to comment.