← Back to all games

JavaScript Snake

Classic Snake written in strikingly little code, with both wrap-around and solid-wall modes.

Arrow keys. Open in new tab ↗

Source

patorjk/JavaScript-Snake

License

MIT

Stars

★ 598

Size

~10-200KB

Tech

原生JS · HTML

Deploy

Static

How to play

Steer with the arrow keys, eat food to grow longer and score higher. Touch your own tail and the run ends; the walls kill or wrap depending on the mode.

Arrow keys.

Integration notes

One of the smallest entries at a few dozen kilobytes — zero loading friction. Tiny tweaks like an invincibility mode or speed power-ups spin it into fresh variants, so it gets reused endlessly.

#原生js#html#keyboard

FAQ

Is JavaScript Snake free to play?

Yes. JavaScript Snake is completely free, runs in your browser, and needs no install or account.

Is JavaScript Snake open source?

Yes. It hosts the original open-source code by patorjk, released under MIT. Source: https://github.com/patorjk/JavaScript-Snake

How do you play JavaScript Snake?

Arrow keys.

More like this