示例#1
0
        static void Main(string[] args)
        {
            for (int i = 0; i < 1000; i++)
            {
                Hand[] hands = PlayedHands.GetNextHands();

                int victor = CalculateVictor.GetVictor(hands);


                if (victor == 0)
                {
                    Draws++;
                    WriteToDisk.AddOutput(PlayedHands.currentHand, WinState.TIE);
                }
                else if (victor == 1)
                {
                    Player1Wins++;
                    WriteToDisk.AddOutput(PlayedHands.currentHand, WinState.PLAYER1);
                }
                else
                {
                    Player2Wins++;
                    WriteToDisk.AddOutput(PlayedHands.currentHand, WinState.PLAYER2);
                }

                Console.WriteLine(victor);
            }

            WriteToDisk.WriteRoundToDisk();

            Console.WriteLine(Player1Wins);
            Console.WriteLine(Player2Wins);
            Console.WriteLine(Draws);


            do
            {
            }while (Console.ReadLine() == "q");
        }