예제 #1
0
파일: Program.cs 프로젝트: Ikudza/game_21
 static void Main(string[] args)
 {
     string answer = "y";
     Console.Write("Hello! Please input your name: ");
     string name = Console.ReadLine();
     Player player = new Player(name);
     AI ai = new AI("Toster");
     while (answer.Equals("y"))
     {
         Game game = new Game(player, ai);
         game.start();
         Console.WriteLine();
         Console.WriteLine("You want to play still?(y/n)");
         answer = Console.ReadLine();
         Console.Clear();
     }
 }
예제 #2
0
파일: Program.cs 프로젝트: Ikudza/game_21
 public Game(Player player, AI ai)
 {
     this.player = player;
     this.ai = ai;
 }