public void shuffleShoe() { double frac = (double)shoe.CardCount / (shoe.DeckCount * 52); if (frac > .75) return; if (frac <= .25) { shoe = new Shoe(5); } else { if (((new Random()).NextDouble() > ((int)(100 - 100 * frac)))) // TODO: figure out what I was on and get some more { shoe = new Shoe(5); } } }
public Hand(Shoe shoe, int size) { this.myParent = shoe; this.cards = new List<Card>(); this.Draw(size); }
public BlackjackHand(Shoe s, bool shouldDraw) : base(s, shouldDraw ? 0 : 2) { }
public BlackjackHand(Shoe s) : base(s, 2) { }
public Game() { Console.WriteLine("Welcome to Blackjack!"); shoe = new Shoe(1); }