Exemplo n.º 1
0
 private void frmGame_Load(object sender, EventArgs e)
 {
     _deck = new Deck(1, false);
     _player1 = new CardSet();
     _player2 = new CardSet();
     Start();
 }
Exemplo n.º 2
0
        public Machine()
        {
            Roulletes = new List<Roullete>(5);
            for (int i = 0; i < Roulletes.Capacity; i++)
                Roulletes.Add(new Roullete());
            
            Random randomTime = new Random();
            Thread.Sleep(randomTime.Next(0, 100));
            _deck1 = new Deck(1, true);
            Thread.Sleep(randomTime.Next(0, 100));
            _deck2 = new Deck(1, true);
            Thread.Sleep(randomTime.Next(0, 100));
            _deck3 = new Deck(1, true);

            _payer = new Payer();
            _payer.OnPayPrice += new PriceHandler(_payer_OnPayPrice);
            PercentGain = 80;
            TotalCoinsReceived = 10000;

        }
Exemplo n.º 3
0
 private void ResetDeck(Deck deck)
 {
     deck.Fill();
     deck.Shuffle(false);
 }
Exemplo n.º 4
0
 public void Spin(Deck deckToSpin1, Deck deckToSpin2, Deck deckToSpin3)
 {
     Slot1 = deckToSpin1.GetTop();
     Slot2 = deckToSpin2.GetTop();
     Slot3 = deckToSpin3.GetTop();
 }