public Table(TableConfiguration config) { Players = new LinkedList <GamePlayer>(); PlayersMap = new Dictionary <string, LinkedListNode <GamePlayer> >(); TableConfig = config; }
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(); }