Example #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("PUYGRENIER Solann - le 26/10/20");
            Console.WriteLine("======================");
            SpaceInvaders MyGame = new SpaceInvaders();

            MyGame.Main();
        }
Example #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("PUYGRENIER Solann - le 4/10/20");
            Console.WriteLine("======================");
            SpaceInvaders TheBestGame = new SpaceInvaders();

            TheBestGame.Main();
            TheBestGame.ShowPlayer();
            TheBestGame.ShowArmory();
            TheBestGame.ShowAllBattleShip();

            //Test exception
            Armory ArmoryForTest = new Armory();
            Weapon WeaponForTest = new Weapon();

            Console.WriteLine("\nStatement :\n ArmoryForTest.AddWeapon(WeaponForTest)\n ArmoryForTest.AddWeapon(WeaponForTest)");
            ArmoryForTest.AddWeapon(WeaponForTest);
            ArmoryForTest.AddWeapon(WeaponForTest);
            Console.ReadLine();
        }
Example #3
0
        public void Main()
        {
            SpaceInvaders myGame = new SpaceInvaders();

            Console.WriteLine(myGame.ToString());
        }