Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snake corner case #27

Open
christopolise opened this issue Sep 8, 2022 · 0 comments
Open

Snake corner case #27

christopolise opened this issue Sep 8, 2022 · 0 comments
Assignees

Comments

@christopolise
Copy link
Contributor

This seems to be a very rare error that happens when there are no possible paths for the snake to take. This is the stack trace:

  run_loop(screen)
File "/home/pi/sss/runners/kiosk.py", line 194, in run_loop
  current_demo, handle_input, queues, screen, demo_time_override
File "/home/pi/sss/runners/kiosk.py", line 136, in play_demo_from_idle
  next(runner)
File "/home/pi/sss/demos/snake_ai/main.py", line 126, in run
  current_location = snek_path.pop(0)
IndexError: pop from empty list

A workaround has been fixed in PR #26, but a more permanent solution should be used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants