Beispiel #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (PacmanGame game = new PacmanGame())
     {
         game.Run();
     }
 }
Beispiel #2
0
 static void Main(string[] args)
 {
     using (var game = new PacmanGame())
     {
         game.Run();
     }
 }
Beispiel #3
0
 static void Main(string[] args) // Fonction d'entrée du programme
 {
     // On décare le jeu et on le lance
     using (PacmanGame game = new PacmanGame())
     {
         game.Run();
     }
 }
Beispiel #4
0
        static void Main(string[] args)
        {
            var     map        = Map.CreateASampleMap();
            var     pacman     = new Pacman(Direction.North, 1, 0);
            var     monster1   = new Monster(2, 2);
            var     monster2   = new Monster(1, 2);
            var     presenter  = new Presenter(new ConsoleIo());
            var     randomiser = new Randomiser();
            var     io         = new ConsoleIo();
            IPlayer player     = new ConsolePlayer(io);
            IPlayer aiPlayer   = new AIPlayer(randomiser);
            IPlayer aiPlayer1  = new AIPlayer(randomiser);
            var     playerList = new Dictionary <IPlayer, ICharacter>
            {
                { player, pacman },
                { aiPlayer, monster1 },
                { aiPlayer1, monster2 }
            };

            var game = new PacmanGame(playerList, map, presenter);

            game.Run();
        }
Beispiel #5
0
 static void Main()
 {
     PacmanGame game = new PacmanGame();
     game.Run();
 }
Beispiel #6
0
        static void Main()
        {
            PacmanGame game = new PacmanGame();

            game.Run();
        }
Beispiel #7
0
        static void Main(string[] args)
        {
            PacmanGame game = new PacmanGame();

            game.Run();
        }