public static void PrintSlotInfo() { Harbour dailyHarbour = new Harbour(); dailyHarbour.ShowNumberOfAvailableSlots(); Harbour.PrintRejectedBoats(); }
static void Main(string[] args) { GameGreeting(); DayIterations = 1; Harbour h = new Harbour(); while (DayIterations < 20) { h.RemoveLeavingBoatsFromHarbour(); var harbourQueue = h.CreateRandomBoatQueueObjects(); foreach (var boat in harbourQueue) { h.AddBoatsToSlot(boat); } h.DisplayHarbourCapacity(); h.DisplayBoatsRejected(); harbourQueue.Clear(); DayIterations++; h.DecrementDaysToStayFromBoatsAtEndOfDay(); Console.WriteLine("Press any key to Continue to the next day.."); Console.ReadKey(); Console.Clear(); } Console.WriteLine("The harbour sim is now complete.."); }
public static void PrintUI() { int numberOfDaysToShow = 30; Harbour dailyHarbour = new Harbour(); for (int i = 0; i < numberOfDaysToShow; i++) { dailyHarbour.DeleteDepartingBoats(); dailyHarbour.DailyBoatArrival(); PrintTable(); Console.ReadLine(); dailyHarbour.CountDownDaysInHarbour(); Console.Clear(); } }
static void Main(string[] args) { Harbour harbour = new Harbour(); harbour.ShowHarbour(); }