/** * Copyright (c) 2021 Dominic Masters * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #include /** * Let a player bet chips into the pot. * * @param poker Poker game instance. * @param player Poker player instance. * @param chips Chips to bet. */ void pokerPlayerBet(poker_t *poker, pokerplayer_t *player, int32_t chips); /** * Returns true if the player is still alive and in the current game/ * Defined as: Not out, not folded. * * @param player Player to check * @returns True if alive/in teh current game. */ bool pokerPlayerIsAlive(pokerplayer_t *player); /** * Returns true if the player provided is human or not. * * @param poker Poker game instance. * @param player Player instance. * @returns True if the player is human. */ bool pokerPlayerIsHuman(poker_t *poker, pokerplayer_t *player);