Hands-on Algorithms Lab
A painting in the manner of a 1981 paperback cover: tall glowing crystal pillars rising from an orange plain into a starry sky, the tallest in the middle, green light behind it

RetroVerse Studios · One cartridge · The console does the thinking

Hands-on Algorithms Lab

Every problem has a trick. On a machine from 1977.

What is actually in the box

The painting is how a clever trick feels. This is what it looks like.

Sorting race part way: three shelves of bars, each sorted a different way
Three ways to sort
A nearly sorted shelf: insertion sort done at 16, quicksort still going
Insertion first
Fair shuffle part way: twelve short bars over and under six labels
Ten thousand shuffles
Fair shuffle done: the obvious way's bars uneven, Fisher-Yates's level
Not fair, every time

In 1981 the box showed a starfighter and the screen showed four blocks. This box does the same, and tells you so. Under the painting is a cartridge of green dots, and in the dots are the tricks people use every day without knowing their names.

Hands-on Algorithms Lab is a set of rooms for the Atari 2600, each an everyday problem and the algorithm that solves it: putting a shelf in order, shuffling a deck fairly, finding a word in a dictionary, packing a bag, choosing a queue. Hands-on as a museum exhibit is: push the stick and watch what happens. Each room is cut down to one idea, shows it working, and has a moment where the obvious answer turns out wrong. Take the idea away and use it on a real problem.

There is no processor in the cartridge. The console's own 6507, at 1.19 MHz, does every sum.

Play it here

Press POWER ON. Up and down choose a room, and past the fourth is a second page. Space enters a room, and Space again starts it. In Sorting race, Space races and pauses, up and down choose the kind of shelf, and RESET deals again. In Fair shuffle, Space shuffles and pauses, left and right choose an order to read its counts, and RESET counts again. SELECT goes back to the menu. The emulator is Stellerator, by Christian Speckner.

The rooms

Two are built, of ten on the menu. Each is one idea you can play with in ninety seconds, and each is checked, dot for dot, against the same idea written in Python.

Sibling cartridges: Hands-on AI Lab, where the travelling salesman lives, and Hands-on Security Lab.

How it was made