This is a collection of cellular automata called "turmites", implemented in Octo for SUPER-CHIP on the HP 48 graphing calculators.
A "turmite" (also known as "TurNing machine") is a type of two-dimensional Turing machine. It consists of an ant that moves over a grid of pixels. Depending on the current pixel's color (limited to two colors in this implementation) and the ant's internal state, it can rotate, change its state, and/or change the color of the pixel before moving. From these simple rules, interesting patterns and behaviors emerge.
The controls will vary depending on whether you're running in your browser, on an actual HP48 calculator, or in a general CHIP-8/SUPER-CHIP emulator/interpreter.
|PC / Octo||HP 48||CHIP-8|
|Move in menu||WASD or arrow keys||5 1 2 3||5 7 8 9|
|Select||Space or Return||SPC||B|
|Adjust speed||+ and -||+ and -||F and E|
|Return to menu||Escape||0 or ENTER||A|
You can input and store (in the HP 48's persistent user flags) a custom turmite. Scroll to the bottom of the menu, and use the numerical buttons to input the numerical string that represents an ant. See if you can discover any interesting ones!
A turmite's ruleset is defined by three digits per color per state (since this implementation only uses two colors, a multiple of two times three numbers).
For example, the basic turmite definition "120 080" (Langton's Ant) means that the turmite has only one state (0), since it has six digits (three digits per color). If the pixel is off (first three digits), it turns the pixel on (1), turns right (2) and enters state 0 (the only state). If the pixel is on (second group of three digits), it turns it off (0), turns left (8) and enters state 0. Possible movement directions are
In order to be equivalent to Turing machines, turmites unsurprisingly require an infinite grid of pixels to move on. Since SUPER-CHIP only provides 128x64 pixels, this implementation is toroidal (ie. the ant wraps around the edges of the screen).
Turmites are limited to 3 internal states in this implementation.
The ant's speed can be adjusted with the + and - keys. However, on a real HP 48 calculator, it will still move pretty slowly even on the fastest setting. An HP 48G series calculator is recommended, as they have a faster CPU than the HP 48S series.
Click download now to get access to the following files:
Leave a comment
Log in with itch.io to leave a comment.