Example #1
0
 public void Draw6(CStack dek)
 {
     while (count < 6)
     {
         InsertCard(dek.TakeCard());
     }
 }
Example #2
0
 public Board(Graphics g)
 {
     deck  = new CStack();
     me    = new Player(deck);
     comp  = new Comp(deck);
     arena = new Table();
 }
Example #3
0
 public void Draw6(CStack dek)
 {
     while (count < 6 && dek.GetCount() != 0)
     {
         InsertCard(dek.TakeCard());
     }
 }
Example #4
0
 public Comp(CStack cs)
 {
     hand = new List <Card>();
     for (int i = 1; i < 7; i++)
     {
         Card cr = cs.TakeCard();
         InsertCard(cr);
     }
 }
Example #5
0
        private void Game_Load(object sender, EventArgs e)
        {
            Graphics g = CreateGraphics();

            game  = new Board(g);
            arena = game.GetArena();
            deck  = game.GetDeck();
            me    = game.GetMe();
            comp  = game.GetComp();
            if (me.Turns() < comp.Turns())
            {
                turn = false;
            }
            else
            {
                turn = true;
            }
            if (turn)
            {
                comp.Atack(arena);
                PaintScreen();
            }
        }