Пример #1
0
 public void InitialDealDealer(CardShoe shoe)
 {
     List<int> upCard = shoe.DealCard(1);
     List<int> holeCard = shoe.DealCard(1, false);
     Cards.AddRange(upCard);
     Cards.AddRange(holeCard);
 }
Пример #2
0
        public static void CreateShoe()
        {
            var sampleConfiguration = new Configuration
            {
                GameRules = new GameRules
                {
                    DoubleAfterSplit = true,
                    MaxNumberOfSplits = 10
                },

                SimulationParameters = new SimulationParameters
                {
                    UnitBetSizeBase = 5,
                    TotalPacksCount = 4,
                    InitialWealth = 10000,
                    BetSizeTrueCountScale = new List<TrueCountBet>
                    {
                       new TrueCountBet
                       {
                           BetRatio = 0.2,
                           TrueCount = 10
                       },
                       new TrueCountBet
                       {
                           BetRatio = 0.1,
                           TrueCount = 20
                       },
                       new TrueCountBet
                       {
                           BetRatio = 0.3,
                           TrueCount = 30
                       }
                    },
                    CountSystem = new List<CountSystemBit>
                    {
                       new CountSystemBit
                       {
                           Card = 1,
                           Count = -1
                       },
                       new CountSystemBit
                       {
                           Card = 2,
                           Count = 1
                       },
                       new CountSystemBit
                       {
                           Card = 3,
                           Count = 1
                       },
                       new CountSystemBit
                       {
                           Card = 4,
                           Count = 1
                       },
                       new CountSystemBit
                       {
                           Card = 5,
                           Count = 1
                       },
                       new CountSystemBit
                       {
                           Card = 6,
                           Count = 1
                       },
                       new CountSystemBit
                       {
                           Card = 7,
                           Count = 0
                       },
                       new CountSystemBit
                       {
                           Card = 8,
                           Count = 0
                       },
                       new CountSystemBit
                       {
                           Card = 9,
                           Count = 0
                       },
                       new CountSystemBit
                       {
                           Card = 10,
                           Count = -1
                       },
                       new CountSystemBit
                       {
                           Card = 11,
                           Count = 1
                       },
                       new CountSystemBit
                       {
                           Card = 12,
                           Count = 1
                       },
                       new CountSystemBit
                       {
                           Card = 13,
                           Count = 1
                       }
                    }
                }
            };

            CardShoe shoe = new CardShoe(sampleConfiguration, new Random());
            var cards = shoe.DealCard(2);
        }
Пример #3
0
 public void InitialDealPlayer(CardShoe shoe)
 {
     List<int> hitCards = shoe.DealCard(2);
     Cards.AddRange(hitCards);
 }
Пример #4
0
 public void Hit(CardShoe shoe)
 {
     List<int> hitCards = shoe.DealCard(1);
     Cards.AddRange(hitCards);
 }