DOM’inated Snake Game

Is the DOM the right place for a snake game? Probably not. But I wanted to see if I could do it! I completed this project as a fun way to get more front-end development experience. If you are curious about that process you can read more here. The source code is available on my GitHub.

I’ve tried my best to make this responsive. My hope is that it will work on most mobile devices so long as their viewport resolution is at least 320×568. However most of my testing has been with emulators. If it doesn’t work for you please reach out and let me know. I’d love to know what I missed!

The game has been developed in Chrome 110+, but also seems to work fine in Firefox 110+, Edge 110+, and Safari 16.3+. Mobile iOS devices do not allow preloading of audio so if you are on this platform there will be no sound, not initially at least, but it does tend to kick in eventually.

Click here to play, or use the button below. I hope you have as much fun playing as I did creating it!