Beispiel #1
0
        private static void Main(string[] args)
        {
            var optimusPrime = TransformerFactory.CreateTransformer(
                TransformerFactory.TransformerType.OptimusPrime, new LaserWeapon(), new OpticalScanner());
            var autoBotX5 = TransformerFactory.CreateTransformer(
                TransformerFactory.TransformerType.AutoBotX5, new LaserWeapon(), new EchoScanner());

            var game = new Game(optimusPrime, autoBotX5);

            game.Battle();
            game.ShowWinner();
        }