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)); }
public abstract IEnumerable <IGameModule> GetModules(PokerGameObserver o, PokerTable table);
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; }
public EndGameModule(PokerGameObserver o, PokerTable table) : base(o, table) { }
public CumulPotsModule(PokerGameObserver o, PokerTable table) : base(o, table) { }
public DistributeMoneyModule(PokerGameObserver o, PokerTable table) : base(o, table) { }
public PokerGame(PokerTable table) { Observer = new PokerGameObserver(this); Observer.PlayerLeft += (sender, e) => LeaveGame(e.Player); Table = table; }
public ShowDownModule(PokerGameObserver o, PokerTable table) : base(o, table) { }
public DealCardsToBoardModule(PokerGameObserver o, PokerTable table, int nbCards) : base(o, table) { NbCards = nbCards; }
public BettingRoundModule(PokerGameObserver o, PokerTable table) : base(o, table) { }
public WaitForBlindsModule(PokerGameObserver o, PokerTable table) : base(o, table) { }
protected AbstractGameModule(PokerGameObserver o, PokerTable table) { Observer = o; Table = table; }
public DiscardRoundModule(PokerGameObserver o, PokerTable table, int minimum, int maximum) : base(o, table) { m_Minimum = minimum; m_Maximum = maximum; }