Skip to content

Commit

Permalink
fix: bug not showing last action env execute
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymax25 committed Jan 9, 2022
1 parent 9306e6f commit 6e281e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projet/funprog-al/src/main/resources/application.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
application {
name = "Mower Simulator"
turn-delay = 1000
turn-delay = 500
input-file = "tmp/input.txt"
output-json-file = "tmp/output.json"
output-csv-file = "tmp/output.csv"
Expand Down
6 changes: 5 additions & 1 deletion projet/funprog-al/src/main/scala/progfun/Environnement.scala
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ object Environnement {
new Environnement(env.limit_x, env.limit_y, env.play, env.delay)
)
}
case Nil => env
case Nil => {
print("\u001b[2J")
env.display()
env
}
}
}

0 comments on commit 6e281e7

Please sign in to comment.