Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in log #197

Closed
charleskawczynski opened this issue Aug 19, 2023 · 1 comment
Closed

Bug in log #197

charleskawczynski opened this issue Aug 19, 2023 · 1 comment

Comments

@charleskawczynski
Copy link
Owner

The log seems to be printing incorrect winning amounts:

julia> tournament!(configure_game())
Configure game:
   1) Heads up-- you vs Bot5050, $1-$2 blinds, $100 bank roll
 > 2) 1v4-- you vs 4 Bot5050's, $1-$2 blinds, $100 bank roll
   3) 2 bots!, $1-$2 blinds, $100 bank roll
v  4) 4 bots!, $1-$2 blinds, $100 bank roll
[ Info: ********************************
[ Info: ******************************** Playing tournament!
[ Info: ********************************
[ Info: ------ Playing game!
[ Info: Initial bank roll summary: [100, 100, 100, 100, 100]
[ Info: Buttons (dealer, small, big, 1ˢᵗToAct): (1, 2, 3, 4)
[ Info: Bot5050[2] paid the small blind and dealt cards: (??,??)
[ Info: Bot5050[3] paid the  big  blind and dealt cards: (??,??)
[ Info: Bot5050[4] dealt (free) cards:                   (??,??)
[ Info: Bot5050[5] dealt (free) cards:                   (??,??)
[ Info: Human[1] dealt (free) cards:                   (7♢, 6♡)
[ Info: Table cards dealt (face-down).
[ Info: Pre-flop!
[ Info: Bot5050[4] raised to 95.
[ Info: Bot5050[5] called 95.
Human[1]'s turn to act:
   Call 95
   Raise all-in (100)
 > Fold
[ Info: Human[1] folded!
[ Info: Bot5050[2] called 94.
[ Info: Bot5050[3] called 93.
[ Info: Betting is finished.
[ Info: Flop:                                              (J♡, K♣, 3♣)
[ Info: Bot5050[4] checked!
[ Info: Bot5050[5] checked!
[ Info: Bot5050[2] checked!
[ Info: Bot5050[3] checked!
[ Info: Betting is finished.
[ Info: Turn:                                              7♠
[ Info: Bot5050[4] checked!
[ Info: Bot5050[5] checked!
[ Info: Bot5050[2] checked!
[ Info: Bot5050[3] folded!
[ Info: Betting is finished.
[ Info: River:                                             5♢
[ Info: Bot5050[4] checked!
[ Info: Bot5050[5] raised to 2.
[ Info: Bot5050[2] called 2.
[ Info: Bot5050[4] called 2.
[ Info: Betting is finished.
[ Info: Human[1] loses (folded) 0 with (7♢, 6♡, J♡, K♣, 7♠) (one_pair)!
[ Info: Bot5050[2] loses 97 with (T♠, J♡, K♣, 7♠, 5♢) (high_card)!
[ Info: Bot5050[3] loses (folded) 95 with (6♣, 4♠, 3♣, 7♠, 5♢) (straight)!
[ Info: Bot5050[4] wins 386 (-97 profit) with (J♣, J♠, J♡, K♣, 7♠) (trips)!
[ Info: Bot5050[5] loses 97 with (3♠, 5♣, K♣, 3♣, 5♢) (two_pair)!
[ Info: Final bank roll summary: [100, 3, 5, 389, 3]
[ Info: ------ Finished game!

In particular, Bot5050[4] wins 386 (-97 profit) with (J♣, J♠, J♡, K♣, 7♠) (trips)! does not make sense since profit should be positive because there is only one winner.

@charleskawczynski
Copy link
Owner Author

Closed by #214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant