Skip to content
Snippets Groups Projects
Commit 2c079d13 authored by owner's avatar owner
Browse files

Homework 3

parent 87f5a4b9
No related branches found
No related tags found
No related merge requests found
...@@ -258,8 +258,10 @@ public class LennonSimulationProgram ...@@ -258,8 +258,10 @@ public class LennonSimulationProgram
// ============================================================================================= // =============================================================================================
// * your own simulation code starts here! ***************************************************** // * your own simulation code starts here! *****************************************************
// ============================================================================================= // =============================================================================================
System.out.println("\nCurrent Location: (" + entityStatePdu_1.getEntityLocation().getX()+","+ entityStatePdu_1.getEntityLocation().getY() + "); Exit: (" + exit[0] + ", " + exit[1] + ")."); System.out.println("==========================================================================");
System.out.println("Move "+ simulationLoopCount+ "of " + SIMULATION_MAX_LOOP_COUNT + ". Where would you like to move now?" ); System.out.println("\nMove "+ simulationLoopCount+ " of " + SIMULATION_MAX_LOOP_COUNT);
System.out.println("Current Location: (" + entityStatePdu_1.getEntityLocation().getX()+","+ entityStatePdu_1.getEntityLocation().getY() + "); Exit: (" + exit[0] + ", " + exit[1] + ").");
System.out.println("Where would you like to move now?" );
// are there any other variables to modify at the beginning of your loop? // are there any other variables to modify at the beginning of your loop?
boolean validMove = false; boolean validMove = false;
String move = null; String move = null;
...@@ -326,6 +328,7 @@ public class LennonSimulationProgram ...@@ -326,6 +328,7 @@ public class LennonSimulationProgram
simulationComplete = true; simulationComplete = true;
} }
} }
System.out.println("");
// ============================================================================================= // =============================================================================================
// * your own simulation code is finished here! ************************************************ // * your own simulation code is finished here! ************************************************
// ============================================================================================= // =============================================================================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment