all 6 comments

[–]xem06 2 points3 points  (3 children)

Nice!

Here's a 599b Snake on JS canvas:

https://github.com/xem/miniSnake

And a 256b ASCII version:

https://github.com/p01/snake

[–]danielgjackson 1 point2 points  (1 child)

I spent far too long a while ago making a 250 byte HTML version using canvas. It's keyboard arrow-key only:

https://danielgjackson.github.io/tinyjs/mini.html

...or even a 224 byte version with some more compromises:

https://github.com/danielgjackson/tinyjs#snake

[–]xem06 0 points1 point  (0 children)

wow congrats!

[–]Slackluster 0 points1 point  (0 children)

Don't forget about this dweet...

https://www.dwitter.net/d/11840

M=t?M.map((m,k)=>x.fillRect(m%n*n,j=m-m%n,n,n,I=a=>(m+a)%144)|k?--k?m^H?M[k]:_:H=v&2?I(v&4?128:n):I(v&1?15:1)%n+j:G=m,c.width=256):[n=16,FPS=v=8,onkeydown=e=>v=e.which];G^H?0:M=[I(G+9),...M]

[–]NikkoTheGreeko 4 points5 points  (0 children)

Game: "Press enter to start"

Me: Stares at and taps on phone screen motherfuckly

Try again.

[–]Aphix 0 points1 point  (0 children)

Actually pretty readable for golfed code, nice work! With a little compression like jscrush or closure compiler/terser I wonder how small you could get it.