summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2016-01-08 18:07:01 +0100
committerFlorian Jung <flo@windfisch.org>2016-01-08 18:07:01 +0100
commit1d8d0cc92e55b8bd51afbbdab14dade5c646e39d (patch)
tree6766c7e4fb9cc50adfe46722e300631b72187408
parent63a2121abe15a5d7e08d7e7a8f92fdbfbe3b5987 (diff)
display range fix
-rw-r--r--sol.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sol.py b/sol.py
index f7b3a61..c01d7e1 100644
--- a/sol.py
+++ b/sol.py
@@ -156,9 +156,9 @@ def visualize(maze, Q):
maxdir = argmax(Qev)
line3 += f("' " + ("^" if maxdir == NORTH else " ") + " ")
line5 += f(" " + ("v" if maxdir == SOUTH else " ") + " ")
- line1 += f(" %06.2f " % Qev[NORTH])
- line2 += f("%s%06.2f %06.2f%s" % ("<" if maxdir == WEST else " ",Qev[WEST], Qev[EAST], ">" if maxdir == EAST else " "))
- line4 += f(" %06.2f " % Qev[SOUTH])
+ line1 += f(" %06.3f " % Qev[NORTH])
+ line2 += f("%s%06.3f %06.3f%s" % ("<" if maxdir == WEST else " ",Qev[WEST], Qev[EAST], ">" if maxdir == EAST else " "))
+ line4 += f(" %06.3f " % Qev[SOUTH])
print(line3)
print(line1)
print(line2)