Skip to content

Conversation

@Thomassteers
Copy link

@Thomassteers Thomassteers commented Jan 15, 2026

What: This PR changes the snake movement by replace the switch statement with a keyToDirection object that maps key codes to movement directions..
Why: This matters because it make the snake movement more smooth and easier to use.
Verified: I verified this by changing the finding where the code is and then changing it and loading up the website to check if it worked and then it worked. I expected it to work because I . I observed .
Status: This PR is ready. Next step is to submit the poll request.
Examples that count:

  • I ran and the tests passed.
  • I reproduced the bug before, then confirmed it’s fixed after, using these steps: Finding an issue that someone commented on this code space then I made my own code space and used that comment to fix the snake movement once I did that I ran the game and it looked good so now I am making a PR about it .
  • I recorded / screenshot the behavior before and after: Yes I did that.
  • I checked the browser console and confirmed there are no errors during: Yes I did that.
Screenshot 2026-01-22 091413

@Thomassteers Thomassteers marked this pull request as draft January 15, 2026 17:43
@patorjk
Copy link
Owner

patorjk commented Jan 16, 2026

What's up with all these PRs? I'm not opposed to looking at them, but it's rather strange to see so many at once out of no where.

@Thomassteers
Copy link
Author

Thomassteers commented Jan 20, 2026 via email

@Thomassteers Thomassteers marked this pull request as ready for review January 22, 2026 17:22
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

Successfully merging this pull request may close these issues.

2 participants