From 2c079d135b9bec6092b22c716c3105f654fda2a2 Mon Sep 17 00:00:00 2001 From: owner <owner@DESKTOP-150HAJJ.ern.nps.edu> Date: Fri, 30 Aug 2024 12:10:47 -0700 Subject: [PATCH] Homework 3 --- .../homework3/Lennon/LennonSimulationProgram.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework3/Lennon/LennonSimulationProgram.java b/assignments/src/MV3500Cohort2024JulySeptember/homework3/Lennon/LennonSimulationProgram.java index b69e9b78d9..509f4eda3b 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework3/Lennon/LennonSimulationProgram.java +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework3/Lennon/LennonSimulationProgram.java @@ -258,8 +258,10 @@ public class LennonSimulationProgram // ============================================================================================= // * 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("Move "+ simulationLoopCount+ "of " + SIMULATION_MAX_LOOP_COUNT + ". Where would you like to move now?" ); + System.out.println("=========================================================================="); + 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? boolean validMove = false; String move = null; @@ -326,6 +328,7 @@ public class LennonSimulationProgram simulationComplete = true; } } + System.out.println(""); // ============================================================================================= // * your own simulation code is finished here! ************************************************ // ============================================================================================= -- GitLab