diff options
-rw-r--r-- | sol.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |