示例#1
0
 public void Draw6(CStack dek)
 {
     while (count < 6)
     {
         InsertCard(dek.TakeCard());
     }
 }
示例#2
0
 public Board(Graphics g)
 {
     deck  = new CStack();
     me    = new Player(deck);
     comp  = new Comp(deck);
     arena = new Table();
 }
示例#3
0
 public void Draw6(CStack dek)
 {
     while (count < 6 && dek.GetCount() != 0)
     {
         InsertCard(dek.TakeCard());
     }
 }
示例#4
0
 public Comp(CStack cs)
 {
     hand = new List <Card>();
     for (int i = 1; i < 7; i++)
     {
         Card cr = cs.TakeCard();
         InsertCard(cr);
     }
 }
示例#5
0
文件: Game.cs 项目: snixs/CardGame
        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();
            }
        }