public TableSummary StartGame(string tableId) { var deck = new Deck(); var cardValues = new CardValues(); var handCalculator = new HandCalculator(cardValues, new HandValues(cardValues)); var table = _tables[tableId]; var game = new Game(handCalculator, deck, table.Players); table.Game = game; table.isPlaying = true; return(table.GetTableSummary()); }
public HandCalculator(CardValues cardValues, HandValues handValues) { _cardValues = cardValues; _handValues = handValues; }
public HandValues(CardValues cardValues) { _cardValues = cardValues; }