RecBox-Games / HoldEm

BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Betting is off by $5 at times #10

Closed rbays30 closed 1 year ago

rbays30 commented 1 year ago

Start a new game, make P1 raise 10, make P2 call. Make P1 raise $5, P2 has $10 to call now instead of $5.

My controller line of code to get the call amount is as follows: variables.Add((gameController.getCurrentCall()-player.bettedRound).ToString());

Whenever I raise I call the raise function and input the amount above the call they raised. AKA if the call is $10 and they raised to $15 I would call raise(5) game side

How should I be getting the value of the call for the controller?

rbays30 commented 1 year ago

This was fixed. Should be calling revealbet - bettedRound