diff --git a/python/items/roll-o-matic.py b/python/items/roll-o-matic.py index 5ac71341e..af742a160 100644 --- a/python/items/roll-o-matic.py +++ b/python/items/roll-o-matic.py @@ -60,6 +60,9 @@ def handle_move(): for check in [0, 1, -1]: d = abs_dir(want_dir + check) if has_floor(x + dir_x[d], y + dir_y[d], floor): + # Next time, move in the direction we last moved in. + # This heuristic helps follow the roads better. + me.WriteKey(key_direction, str(d)) if me.Move(d) == 0: continue