Skip to content

Instantly share code, notes, and snippets.

@u5n
u5n / .VeryShort_SnakeGame.md
Last active January 8, 2020 07:04
JavaScript very short snake game

This is a Classic Snake-Game with no logic error;

  1. Use arrowkeys to control it.
  2. index.html aimed to find how short it could be.
    • the parameter l is the size of the map
    • without para l, the code can be shorten to 429bytes
  3. short_snake_game.html aimed to give a intuitive effect of code.
  4. I know it worthless, but I find someone write an even worse code and paste on their blog
  5. the normal version for education