The Code For This Pleasingly Simple Game Fits In A Single Tweet

The Code For This Pleasingly Simple Game Fits In A Single Tweet

If you’ve got a few spare minutes, you might enjoy a quick game of Tiny-Twitch. But then you’ll no doubt end up amazed by the fact that the source code for the whole thing can fit inside a single tweet.

Developed by Alex Yoder, the game — which requires you to try and click the X that appears onscreen as many times as you can — is written using just a little HTML and JavaScript. In fact, just this much HTML and JavaScript:

<script>var e,s=0,t=Date.now();function f(){((e=Date.now()-t)<15000)?a.style.margin=++s+e%300:alert(s)}</script><p id=”a” onclick=”f()”>X

You can play the game here. Go on, have a go. It’s kind of fun — and very, very impressive. [Alex Yodder via Hacker News]


The Cheapest NBN 50 Plans

It’s the most popular NBN speed in Australia for a reason. Here are the cheapest plans available.

At Gizmodo, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.