public static void Main()
        {
            var reader = new ConsoleReader();
            var writer = new ConsoleWriter();
            var data = new ISISData();
            var warFactory = new WarEffectFactory();
            var attackFactory = new AttackTypeFactory();
            var groupFactory = new GroupFactory();

            var engine = new Engine(data, reader, writer, warFactory, attackFactory, groupFactory);
            engine.Run();
        }
Exemple #2
0
        public static void Main(string[] args)
        {
            IInpputReader reader = new ConsoleReader();
            IOutputWriter writer = new ConsoleWriter();

            IWarEffectFactory warEffectFactory = new WarEffectFactory();
            IAttackFactory attackFactory = new AttackFactory();
            IGroupFactory groupFactory = new GroupFactory(warEffectFactory, attackFactory);

            IWorld world = new World(reader, writer, groupFactory);
            world.Run();
        }