Open codegard1 opened 7 years ago
Each player has a bank prop that is the amount of money they have left to play with.
bank
_bet()
pot
_ante()
roundCount
_resetGame()
this doesn't seem right somehow _ante() { const players = this.state.players; players.forEach(player, index => { this._bet(null, null, index, this.state.minimumBet); }); }
_ante() { const players = this.state.players; players.forEach(player, index => { this._bet(null, null, index, this.state.minimumBet); }); }
Each player has a
bank
prop that is the amount of money they have left to play with._bet()
is called, subtract the bet amount from player'sbank
and add it to Table state'spot
_ante()
)_ante()
occursroundCount
to Table state_resetGame()
is called