movement_planning #2

Merged
s473585 merged 13 commits from movement_planning into master 2023-05-24 14:28:17 +02:00
Showing only changes of commit d503ee4f0c - Show all commits

View File

@ -67,8 +67,8 @@ def main():
if event.type == pygame.QUIT:
run = False
#keys_pressed = pygame.key.get_pressed()
steps = bfs(State(None, None, 0, 0, 'E'), 450, 100)
draw_window(agent, fields)
steps = bfs(State(None, None, 0, 0, 'E'), 250, 100)
for interm in steps:
if interm.action == 'LEFT':
agent.direction = (agent.direction - 1) % 4