public void Draw6(CStack dek) { while (count < 6) { InsertCard(dek.TakeCard()); } }
public Board(Graphics g) { deck = new CStack(); me = new Player(deck); comp = new Comp(deck); arena = new Table(); }
public void Draw6(CStack dek) { while (count < 6 && dek.GetCount() != 0) { InsertCard(dek.TakeCard()); } }
public Comp(CStack cs) { hand = new List <Card>(); for (int i = 1; i < 7; i++) { Card cr = cs.TakeCard(); InsertCard(cr); } }
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(); } }