Ejemplo n.º 1
0
 /**
  * Run the simulation from its current state for the given number of steps. Stop before the given
  * number of steps if it ceases to be viable.
  *
  * @param numSteps The number of steps to run for.
  */
 public void simulate(int numSteps) {
   for (int step = 1; step <= numSteps && view.isViable(field); step++) {
     simulateOneStep();
   }
 }