Beispiel #1
0
 public void Run(int noOfDays)
 {
     nxDayCalc = new NextDayCalc(NextDayCalc.NextDayRules.Conway);
     for (int i = 0; i < noOfDays; i++)
     {
         Console.WriteLine("go gog run run");
         gameWorld.getNextDay(nxDayCalc);
     }
 }
Beispiel #2
0
 internal void getNextDay(NextDayCalc nxDayCalc)
 {
     oldWorld = world;
     world    = nxDayCalc.getNextDay(this);
     age++;
 }