def move_toward(): path = bot_moves.path_proximity_target(_map) (move_from, move_to) = bot_moves.move_path(path) if move_from and move_to: place_move(move_from, move_to) return True return False
def move_toward(): _map.path = bot_moves.path_proximity_target(_map) (move_from, move_to) = bot_moves.move_path(_map.path) if move_from and move_to: # print("move_toward:", move_from, move_to) place_move(move_from, move_to) return True return False