Snake Game Code Challenge

Native JavaScript Only

This is one of my favorite challenges as it is simple and covers a few native Javascript concepts. I added the code for this (Cerny Code*) and you can download it here. Just rename the file to .html and open in any browser.

The Code

The code has a few key components:


* Cerny Method is for demo only. The Cerny Method contains a small slice of hack code (forget SOLID, Conventions, Design Patterns, etc.) meant only to demo a concept.