Tweet Contains an Entirely Playable, Retro-Style Arcade Game

via The Verge

A 280-character tweet might not seem like a lot of space, but if you’re crafty enough, it’s actually just enough to program a video game.

That’s the challenge that security engineer Alok Menghrajani gave himself: to squeeze a CD-ROM holding a retro-style video game into the space of a single tweet. After two weekends, he’d succeeded — the resulting code is a video game that can be booted up in a virtual machine, or burned onto a physical disk. The game, Menghrajani told Motherboard, is kind of like a cross between Tron and Snake.

Previously, the Square employee managed to fit an entire bootable floppy disk containing a video game into a 140-character tweet. The current game takes advantage of Twitter’s recent doubled character limit, letting him create a CD-ROM-compatible game in 277 characters. He says the inspiration came after researching the CD format at work and realizing he could program functions with minimal characters.

For those with programming know-how, the process of cramming all of that code into this tiny space is known as “code golfing,” where people try to reach an objective, create a program, or solve a puzzle in the fewest lines of code possible (or in this case, the least amount of characters). The golfing namesake draws from the sport, where the fewest number of strokes (or keystrokes, in this case) “wins.”

See and read more!


Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 11/15/2024 Featuring Adafruit bq25185 USB / DC / Solar Charger with 3.3V Buck Board! (Video)

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — The 2024 Recap Issue!

Maker Business – Adafruit Daily — Apple to build another chip at TSMC Arizona

Electronics – Adafruit Daily — SMT Tip – Stop moving around!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !


No Comments

No comments yet.

Sorry, the comment form is closed at this time.