Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
2c079d13
Commit
2c079d13
authored
8 months ago
by
owner
Browse files
Options
Downloads
Patches
Plain Diff
Homework 3
parent
87f5a4b9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assignments/src/MV3500Cohort2024JulySeptember/homework3/Lennon/LennonSimulationProgram.java
+5
-2
5 additions, 2 deletions
...lySeptember/homework3/Lennon/LennonSimulationProgram.java
with
5 additions
and
2 deletions
assignments/src/MV3500Cohort2024JulySeptember/homework3/Lennon/LennonSimulationProgram.java
+
5
−
2
View file @
2c079d13
...
...
@@ -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! ************************************************
// =============================================================================================
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment