Exemple #1
0
        /// <summary>
        /// 结束要牌.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnStand_Click(object sender, EventArgs e)
        {
            // 玩家结束.
            game.PlayerStand(player);


            // 电脑玩家结束处理.
            computerPlayer.DoAutoHitOrStand(game);

            // 显示计算机玩家的所有牌
            ShowComputerAllCards();


            this.btnHit.Visible   = false;
            this.btnStand.Visible = false;
            this.btnStart.Visible = true;

            // 完成游戏.
            game.FinishGame();

            // 显示游戏结果.
            ShowGameResult();
        }