コード例 #1
0
ファイル: Program.cs プロジェクト: V-SAWU/2121
        static bool xianshi()
        {
            string a       = "";
            string b       = "";
            string message = "";

            if (game.hand_zj.cards[0] != null)
            {
                a += game.hand_zj.cards[0].value + " *";
            }

            foreach (Card k in game.hand_wj.cards)
            {
                if (k != null)
                {
                    b += k.value + " ";
                }
            }

            Console.Clear();
            Console.WriteLine("Current menoy" + score_wj + "\r\n");
            Console.WriteLine("banker:" + a + "\r\n");
            Console.WriteLine("player:" + b);
            Console.WriteLine("is it bid card(Y/N)");
            string wish = Console.ReadLine();

            if (wish.ToLower() == "y")
            {
                game.hitEvent(out message);
            }
            else
            {
                game.standEvent(out message);
            }

            if (message == "")
            {
                xianshi();
            }
            else
            {
                xianshi1();
                Console.WriteLine(message);
                Console.WriteLine("please Click any key to start the game");
                Console.ReadKey();
            }

            return(false);
        }