コード例 #1
0
        public static void RunGame()
        {
            SetupScreen();
            StartGame();

            for (turn = 1; turn <= MAXN_TURNS; turn++)
            {
                GetPlayerChoice();
                SPS_Game.GetComputerChoice();

                ShowChoices();

                SPS_Game.WorkoutWinner();
                ShowResult();

                Console.WriteLine();
                Console.Write("Press any key!");
                Console.ReadKey();
            }

            SPS_Game.End();
            EndGame();
        }
コード例 #2
0
 /// <summary>
 /// *******************************************************
 ///
 /// *******************************************************
 /// </summary>
 private static void StartGame()
 {
     SimpleIO.WriteTitle(Title, "Week 3");
     SPS_Game.Start();
     playerName = SimpleIO.GetString("Please enter your name > ");
 }