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

Implement Betting mechanism per player #8

Open
6 tasks done
codegard1 opened this issue Jul 4, 2017 · 1 comment
Open
6 tasks done

Implement Betting mechanism per player #8

codegard1 opened this issue Jul 4, 2017 · 1 comment
Assignees

Comments

@codegard1
Copy link
Owner

codegard1 commented Jul 4, 2017

Each player has a bank prop that is the amount of money they have left to play with.

  • Each time _bet() is called, subtract the bet amount from player's bank and add it to Table state's pot
  • When a new round starts, automatically 'bet' for each player (_ante())
  • notify the player when _ante()occurs
  • Replace the New Game option in CommandBar with "New Round"
  • add roundCount to Table state
  • increment roundCount like turnCount, but don't reset turnCount when _resetGame() is called
@codegard1 codegard1 self-assigned this Jul 4, 2017
@codegard1
Copy link
Owner Author

codegard1 commented Jul 4, 2017

this doesn't seem right somehow
_ante() { const players = this.state.players; players.forEach(player, index => { this._bet(null, null, index, this.state.minimumBet); }); }

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

No branches or pull requests

1 participant