This is an attempt to rewrite the classic game snake, following functional programming principles. You can play it at https://ptrpiero.github.io/snake/
Control snake with arrow keys. Game ends when snake collides with itself. To run a new game, refresh the page.