Add tank controls to the snake #2

Closed
opened 2023-11-12 13:04:34 +01:00 by sacha · 1 comment
Owner

Currently the snake goes left, right, up, down, or right when nothing happens after a second.

For the next step:

  • Start the snake in the center of the screen and head into a random direction
  • Always go into the last direction picked
  • When it hits the border die
Currently the snake goes left, right, up, down, or right when nothing happens after a second. For the next step: - [x] Start the snake in the center of the screen and head into a random direction - [x] Always go into the last direction picked - [x] When it hits the border die
Author
Owner

It depends on how you hit the border:

  • Press key, auto-quits
  • slides into the wall, need to press q
It depends on how you hit the border: * Press key, auto-quits * slides into the wall, need to press q
sacha closed this issue 2023-11-12 15:01:22 +01:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: golang/snake#2
No description provided.