CharlieHess / slack-poker-bot

A bot that deals Texas Hold'em games in Slack
MIT License
1.66k stars 207 forks source link

Betting Round Flow #3

Closed CharlieHess closed 9 years ago

CharlieHess commented 9 years ago

This PR reworks the flow of both a hand and a betting round, allowing for hands to be ended prematurely and for betting rounds to cycle through players multiple times.

  1. Rather than flattening the entire hand into a single Observable, it's now split into distinct sections, with the option to end the hand after each round of betting.
  2. There are now roundEnded and handEnded subjects.
  3. repeat and takeUntil are used in combination to repeat cycles.