Beispiel #1
0
        public string ShootAt(Hunter x)
        {
            var number = rand.Next(0, 10); //rand number between 1 and 10

            if (number <= 5)
            {
                x.Hit = true;
                return($"Successfully shot at {x.ToString()}");
            }
            return($"Missed shooting at {x.ToString()}");
        }
Beispiel #2
0
 public string ShootAt(Hunter x)
 {
     return(Shooter.ShootAt(x));
 }