public void InitialDealDealer(CardShoe shoe) { List<int> upCard = shoe.DealCard(1); List<int> holeCard = shoe.DealCard(1, false); Cards.AddRange(upCard); Cards.AddRange(holeCard); }
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); }
public void InitialDealPlayer(CardShoe shoe) { List<int> hitCards = shoe.DealCard(2); Cards.AddRange(hitCards); }
public void Hit(CardShoe shoe) { List<int> hitCards = shoe.DealCard(1); Cards.AddRange(hitCards); }