Ejemplo n.º 1
0
 public Table(TableConfiguration config)
 {
     Players     = new LinkedList <GamePlayer>();
     PlayersMap  = new Dictionary <string, LinkedListNode <GamePlayer> >();
     TableConfig = config;
 }
Ejemplo n.º 2
0
        public Game(IHubContext <PokerHub> hubContext, IPokerEvaluator pokerEvaluator, TableConfiguration tableConfig) //TODO: add Dependency Injection for handLogger here, redis, and other services
        {
            _hubContext     = hubContext;
            _pokerEvaluator = pokerEvaluator;

            Table      = new Table(tableConfig);
            BoardCards = new List <Card>(5);
            HandState  = new HandStageHelper();
        }