Fixed betting bugs.

This commit is contained in:
2021-09-27 14:27:13 -07:00
parent fff60c5768
commit d04c5f6505
22 changed files with 169 additions and 62 deletions

View File

@ -7,6 +7,7 @@
#include "../libs.h"
#include "player.h"
#include "../util/math.h"
#include "../util/array.h"
/** How many chips each player has by defautl */
#define POKER_BET_PLAYER_CHIPS_DEFAULT 10000
@ -41,7 +42,7 @@ void pokerBetInit(pokerbet_t *bet);
/**
* Resets the bet state (for a new round).
*
* @param bet
* @param bet Betting stating.
*/
void pokerBetReset(pokerbet_t *bet);
@ -97,8 +98,7 @@ uint8_t pokerBetGetRemainingPlayer(
);
/**
* Returns the count of players who are still available to bet. This does not
* consider any round logic, simply whether or not they COULD bet.
* Returns the count of players who are still needing to bet.
*
* @param bet Betting instance
* @param players Players array.