static void Main(string[] args) { DisplayTitleAndInstructions(); var firingRange = new FiringRange(); while (true) { Game.Play(firingRange); Console.WriteLine(); Console.WriteLine(); Console.WriteLine(); Console.WriteLine(); Console.WriteLine(); Console.WriteLine("Next target..."); Console.WriteLine(); firingRange.NextTarget(); } }
public Game(IReadWrite io, FiringRange firingRange) { _io = io; _firingRange = firingRange; }
private Game(FiringRange firingRange) { _firingRange = firingRange; }
public static void Play(FiringRange firingRange) => new Game(firingRange).Play();