If you click on a link and make a purchase we may receive a small commission. Read our editorial policy.

Slim, Fast: Tetris & Snake In 140 Bytes

This is amazing! Well, the game itself - a hobbled, ASCII-esque version of Tetris with only two block types - isn't amazing, but the fact that it comprises just 140 bytes is. 140 bytes in this instance also means 140 characters, so essentially this is a working game you could post on Twitter.

Play it in your browser here, then come back here and marvel that the below is all that's involved:

function(a,b,c,d,e){return d+=c,
e=a|b<

That's Javascript, so it's calling up various higher functions and... oh, I'm too stupid to understand, but I know that it's damned clever. Admittedly there does appear to be some cheating going on, in that input and display are handled separately: you can comb through the code and discussion here.

It's part of a project/contest called 140byt.es, which has also generated a similarly svelte and smart take on Snake.

These people. They are clever people. I am not. I feel bad now.

About the Author

Alec Meer avatar

Alec Meer

Contributor

Ancient co-founder of RPS. Long gone. Now mostly writes for rather than about videogames.

Support Rock Paper Shotgun

Subscribe and get access to supporter-only articles, an ad-free reading experience, free gifts, and game discounts. Your support helps us create more great writing about PC games.

See more information

More News

Latest Articles

Rock Paper Shotgun logo

We've been talking, and we think that you should wear clothes

Total coincidence, but we sell some clothes

Rock Paper Shotgun Merch