diff --git a/assignments/src/MV3500Cohort2023MarchJune/homework3/Fredrickson/ExampleSimulationProgram.java b/assignments/src/MV3500Cohort2023MarchJune/homework3/Fredrickson/ExampleSimulationProgram.java index cda610e204bccb97d3a09a0f2b33b97d012dee35..c3ea72958ca8d20e095d515eb0e6dbe6b56d6b9c 100644 --- a/assignments/src/MV3500Cohort2023MarchJune/homework3/Fredrickson/ExampleSimulationProgram.java +++ b/assignments/src/MV3500Cohort2023MarchJune/homework3/Fredrickson/ExampleSimulationProgram.java @@ -27,6 +27,8 @@ import java.util.logging.Logger; * @see <a href="https://gitlab.nps.edu/Savage/NetworkedGraphicsMV3500/-/blob/master/examples/src/OpenDis7Examples/ExampleSimulationProgramSequenceDiagram.png">ExampleSimulationProgramSequenceDiagram.png</a> * * JOHN FREDRICKSON + * -formatting changes made + * -set to loop 15 times * */ public class ExampleSimulationProgram @@ -196,7 +198,7 @@ public class ExampleSimulationProgram { try { - final int SIMULATION_MAX_LOOP_COUNT = 10; // be deliberate out there! also avoid infinite loops. + final int SIMULATION_MAX_LOOP_COUNT = 15; // be deliberate out there! also avoid infinite loops. int simulationLoopCount = 0; // variable, initialized at 0 boolean simulationComplete = false; // sentinel variable as termination condition, are we done yet? @@ -230,7 +232,7 @@ public class ExampleSimulationProgram // etc. etc. your code goes here for your simulation of interest // something happens between my simulation entities, la de da de da... - System.out.println ("... My simulation just did something, no really..."); + System.out.println ("... My simulation just did something, no really...\n"); System.out.flush(); // make sure this arrives to user even if other threads somehow become deadlocked