In this video we fix a bug for the snake video that I released last year. Our snake was able to crash into the tail piece behind it if the keys were pressed quick enough. I’ll explain the bug and show all the steps that I used to find and fix the bug.
The original snake tutorial can be found here:
• Coding Snake in JavaScript Complete T...
Github Direct link to index.js bug fix:
https://github.com/CodingWith-Adam/sn...