Esempio n. 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (PacmanGame game = new PacmanGame())
     {
         game.Run();
     }
 }
Esempio n. 2
0
 static void Main(string[] args)
 {
     using (var game = new PacmanGame())
     {
         game.Run();
     }
 }
Esempio n. 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();
     }
 }
Esempio n. 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();
        }
Esempio n. 5
0
 static void Main()
 {
     PacmanGame game = new PacmanGame();
     game.Run();
 }
Esempio n. 6
0
        static void Main()
        {
            PacmanGame game = new PacmanGame();

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

            game.Run();
        }