diff options
author | Florian Jung <flo@windfisch.org> | 2016-01-05 18:24:32 +0100 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2016-01-05 18:24:32 +0100 |
commit | a9d63e486f43f5e6858c44627f3711b11d83f35f (patch) | |
tree | 83da1db8a12ebab9ba5377b4c8cc381be37b2081 | |
parent | 08ae81c5869ee8da8900e208a6b6ae842e7bb818 (diff) |
wider output
-rw-r--r-- | sol.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -138,11 +138,11 @@ def visualize(maze, Q): Qev = Q.eval(x,y) maxdir = argmax(Qev) - line3 += f("' " + ("^" if maxdir == NORTH else " ") + " ") - line5 += f(" " + ("v" if maxdir == SOUTH else " ") + " ") - line1 += f(" %04.2f " % Qev[NORTH]) - line2 += f("%s%04.2f %04.2f%s" % ("<" if maxdir == WEST else " ",Qev[WEST], Qev[EAST], ">" if maxdir == EAST else " ")) - line4 += f(" %04.2f " % Qev[SOUTH]) + 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]) print(line3) print(line1) print(line2) |