Пример #1
0
 public GameTcpClient(string name, int port)
 {
     Observer        = new PokerGameObserver(this);
     m_TablePosition = -1;
     m_PlayerName    = name;
     m_NoPort        = port;
 }
        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));

            //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));
        }
Пример #3
0
 public abstract IEnumerable <IGameModule> GetModules(PokerGameObserver o, PokerTable table);
Пример #4
0
 public WaitForPlayerModule(PokerGameObserver o, PokerTable table) : base(o, table)
 {
 }
 public DealMissingCardsToPlayersModule(PokerGameObserver o, PokerTable table, int nbCardsFaceDown, int nbCardsFaceUp = 0)
     : base(o, table)
 {
     NbCardsFaceDown = nbCardsFaceDown;
     NbCardsFaceUp   = nbCardsFaceUp;
 }
Пример #6
0
 public EndGameModule(PokerGameObserver o, PokerTable table)
     : base(o, table)
 {
 }
Пример #7
0
 public CumulPotsModule(PokerGameObserver o, PokerTable table)
     : base(o, table)
 {
 }
Пример #8
0
 public DistributeMoneyModule(PokerGameObserver o, PokerTable table)
     : base(o, table)
 {
 }
Пример #9
0
 public PokerGame(PokerTable table)
 {
     Observer             = new PokerGameObserver(this);
     Observer.PlayerLeft += (sender, e) => LeaveGame(e.Player);
     Table = table;
 }
Пример #10
0
 public ShowDownModule(PokerGameObserver o, PokerTable table)
     : base(o, table)
 {
 }
Пример #11
0
 public DealCardsToBoardModule(PokerGameObserver o, PokerTable table, int nbCards)
     : base(o, table)
 {
     NbCards = nbCards;
 }
Пример #12
0
 public BettingRoundModule(PokerGameObserver o, PokerTable table)
     : base(o, table)
 {
 }
Пример #13
0
 public WaitForBlindsModule(PokerGameObserver o, PokerTable table)
     : base(o, table)
 {
 }
Пример #14
0
 protected AbstractGameModule(PokerGameObserver o, PokerTable table)
 {
     Observer = o;
     Table    = table;
 }
Пример #15
0
 public DiscardRoundModule(PokerGameObserver o, PokerTable table, int minimum, int maximum)
     : base(o, table)
 {
     m_Minimum = minimum;
     m_Maximum = maximum;
 }