예제 #1
0
        public GameForm(string name)
        {
            InitializeComponent();
            player_name.Text = name;
            player_name.Show();

            banker_card = new PictureBox[5];
            player_card = new PictureBox[5];

            banker = new Banker("CPU");
            player = new Player(name);

            deck = new Deck();
            bet = 50;

            InitBankerBox(banker_card, new Point(670, 120), new Size(85, 110));
            InitPlayerBox(player_card, new Point(93, 352), new Size(85, 110));
        }
예제 #2
0
 //游戏函数:newround
 private void NewRound()
 {
     player.StartNextRound();
     banker.StartNextRound();
     deck = new Deck();
     bet = 0;
     for (int i = 0; i < 5; i++)
     {
         banker_card[i].Image = null;
         player_card[i].Image = null;
     }
 }