示例#1
0
文件: Main.cs 项目: cbayles/DiceGame
 public static void Main(string[] args)
 {
     Console.WriteLine ("How many players are going to play??????? (press 'q' at any time to stop the game)");
     var playerCount = Console.ReadLine();
     var game = new DiceGame(Convert.ToInt32 (playerCount));
     do
     {
         game.RollDie();
         game.PrintGameSummary();
         Console.WriteLine("It's {0}'s turn. Press a key to roll the die.", game.CurrentPlayer.Name);
     } while(Console.ReadKey().Key != ConsoleKey.Q);
 }