public void Run(IWorld world, int iterations) { int currentIteration = 0; while (currentIteration < iterations) { userInterface.Write(world.ToString()); world = NextIteration(world); currentIteration++; } }
public void Run(IWorld world, int iterations) { int currentIteration = 0; while (currentIteration < iterations) { userInterface.Write(world.ToString()); world = NextIteration(world); currentIteration++; } }