コード例 #1
0
        static void Main(string[] args)
        {
            int numberOfLaps = int.Parse(Console.ReadLine());
            int trackLength  = int.Parse(Console.ReadLine());

            RaceTower raceTower = new RaceTower();

            raceTower.SetTrackInfo(numberOfLaps, trackLength);

            Engine engine = new Engine(raceTower);

            engine.Run();
        }
コード例 #2
0
 public Engine(RaceTower raceTower)
 {
     _raceTower = raceTower;
 }