Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
 public HandCalculator(CardValues cardValues, HandValues handValues)
 {
     _cardValues = cardValues;
     _handValues = handValues;
 }
Ejemplo n.º 3
0
 public HandValues(CardValues cardValues)
 {
     _cardValues = cardValues;
 }