X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=maze.py;h=44bef7c5c9d564317bbb29e636b5add5962af0fd;hb=a0e547917131af0b353e3bf31a062c9b35c8dd18;hp=754cdeab2728b756bae6c17d017f1c95e680214d;hpb=ffc0a92cddefa9fda9f25468c25ae1365b52be47;p=beaver.git diff --git a/maze.py b/maze.py index 754cdea..44bef7c 100755 --- 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