public StudFirstBettingRoundModule(PokerGameObserver o, PokerTable table)
     : base(o, table)
 {
     Variant = Table.Variant as AbstractStudGameVariant;
     if (Table.Params.Options.OptionType != GameTypeEnum.StudPoker || Variant == null)
         throw new Exception("This should only used with STUD games.");
 }
        public override IEnumerable<IGameModule> GetModules(PokerGameObserver o, PokerTable t)
        {
            //Preflop
            yield return new DealMissingCardsToPlayersModule(o, t, NbCardsInHand);
            yield return new FirstBettingRoundModule(o, t);
            yield return new CumulPotsModule(o, t);

            //Flop
            yield return new DealCardsToBoardModule(o, t, 3);
            yield return new BettingRoundModule(o, t);
            yield return new CumulPotsModule(o, t);

            //Discard 2 to go back to 2 hole cards
            yield return new DiscardRoundModule(o, t, 2, 2);

            //Turn
            yield return new DealCardsToBoardModule(o, t, 1);
            yield return new BettingRoundModule(o, t);
            yield return new CumulPotsModule(o, t);

            //River
            yield return new DealCardsToBoardModule(o, t, 1);
            yield return new BettingRoundModule(o, t);
            yield return new CumulPotsModule(o, t);
        }
        public override IEnumerable<IGameModule> GetModules(PokerGameObserver o, PokerTable t)
        {
            yield return new DealMissingCardsToPlayersModule(o, t, NbCardsInHand);
            yield return new FirstBettingRoundModule(o, t);
            yield return new CumulPotsModule(o, t);

            yield return new DiscardRoundModule(o, t, 0, 5);

            yield return new DealMissingCardsToPlayersModule(o, t, NbCardsInHand);
            yield return new BettingRoundModule(o, t);
            yield return new CumulPotsModule(o, t);
        }
 public abstract IEnumerable<IGameModule> GetModules(PokerGameObserver o, PokerTable table); 
 public DealMissingCardsToPlayersModule(PokerGameObserver o, PokerTable table, int nbCardsFaceDown, int nbCardsFaceUp = 0)
     : base(o, table)
 {
     NbCardsFaceDown = nbCardsFaceDown;
     NbCardsFaceUp = nbCardsFaceUp;
 }
 public WaitForPlayerModule(PokerGameObserver o, PokerTable table) : base(o, table)
 {
 }
 public DealCardsToBoardModule(PokerGameObserver o, PokerTable table, int nbCards)
     : base(o, table)
 {
     NbCards = nbCards;
 }
 public DistributeMoneyModule(PokerGameObserver o, PokerTable table)
     : base(o, table)
 {
 }
 protected AbstractGameModule(PokerGameObserver o, PokerTable table)
 {
     Observer = o;
     Table = table;
 }
Exemplo n.º 10
0
 public ShowDownModule(PokerGameObserver o, PokerTable table)
     : base(o, table)
 {
 }
Exemplo n.º 11
0
 public CumulPotsModule(PokerGameObserver o, PokerTable table)
     : base(o, table)
 {
 }
Exemplo n.º 12
0
 public PokerGame(PokerTable table)
 {
     Observer = new PokerGameObserver(this);
     Table = table;
 }
 public DiscardRoundModule(PokerGameObserver o, PokerTable table, int minimum, int maximum)
     : base(o, table)
 {
     m_Minimum = minimum;
     m_Maximum = maximum;
 }
Exemplo n.º 14
0
 public EndGameModule(PokerGameObserver o, PokerTable table)
     : base(o, table)
 {
 }
 public WaitForBlindsModule(PokerGameObserver o, PokerTable table)
     : base(o, table)
 {
 }
 public FirstBettingRoundModule(PokerGameObserver o, PokerTable table)
     : base(o, table)
 {
 }
 public DecideWinnersModule(PokerGameObserver o, PokerTable table)
     : base(o, table)
 {
 }