Classic snake game written in vanilla javascript, no canvas, under 80 lines of code. Game logic (snake.js) is separate from rendering so game can be run from:
- HTML page: open snake.html (uses snake.js and html-renderer.js)
- Node console: run "node node-renderer.js" (uses snake.js)
Live example: https://codepen.io/adamlubek/pen/XxeRRa?editors=0011