Esempio n. 1
0
 public Dealer(Graphics drawing, ShuffleMachine machine)
 {
     this.drawing = drawing;
     this.machine = machine;
     machine.Start();
     for (int i = 0; i < playerHand.Count(); i++)
     {
         playerHand[i] = new CardHand();
     }
     dealerHand  = new CardHand();
     cardDrawing = new CardDrawing(drawing);
     dealTo      = 0;
 }
Esempio n. 2
0
        public void FinishHand()
        {
            //Put the used card back to the shuffle machine.
            //This works exactly like skycity casino shuffle machine.
            machine.PutCardBack();
            //reset cards positions and card hand
            for (int i = 0; i < playerHand.Count(); i++)
            {
                playerHand[i] = new CardHand();
            }

            dealerHand    = new CardHand();
            cardDrawing   = new CardDrawing(drawing);
            lastBoxFinish = false;
            dealTo        = 0;
        }