Update
[beaver.git] / maze.py
diff --git a/maze.py b/maze.py
index 754cdea..44bef7c 100755 (executable)
--- a/maze.py
+++ b/maze.py
@@ -200,7 +200,7 @@ def save_image(
             [255, 255, 255],  # empty
             [0, 0, 0],  # wall
             [0, 255, 0],  # start
-            [0, 0, 255],  # goal
+            [127, 127, 255],  # goal
             [255, 0, 0],  # path
         ]
     )
@@ -238,7 +238,7 @@ def save_image(
         c_score_paths = score_paths.unsqueeze(1).expand(-1, 3, -1, -1)
         c_score_paths = (
             c_score_paths * colors[4].reshape(1, 3, 1, 1)
-            + (1 - c_score_paths) * colors[3].reshape(1, 3, 1, 1)
+            + (1 - c_score_paths) * colors[0].reshape(1, 3, 1, 1)
         ).long()
         c_score_paths = c_score_paths * (mazes.unsqueeze(1) == v_empty) + c_mazes * (
             mazes.unsqueeze(1) != v_empty