Example #1
0
        public void Run()
        {
            var castle = new Castle();

            castle.Build()
            .AddGuard()
            .AddTower()
            .AddTower()
            .AddTower()
            .AddTower()
            .AddGuard();

            castle.Damage(10);
            castle.Damage(10);
            castle.Damage(10);
            castle.Damage(10);
            castle.Damage(10);
            castle.Damage(10);
            castle.Damage(10);
            castle.Damage(10);
            castle.Damage(10);
            castle.Damage(10);
            castle.Damage(10);
            castle.Damage(10);
            castle.Damage(10);
            castle.Damage(10);
        }