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.

Instructions on how to load and run this program on your own HP 48 calculator

Controls

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 / OctoHP 48CHIP-8
Move in menuWASD or arrow keys5 1 2 35 7 8 9
SelectSpace or ReturnSPCB
Adjust speed+ and -+ and -F and E
Return to menuEscape0 or ENTERA
Toggle sound+/-

Custom

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

1No turn
2Right
4U-turn
8Left

Limitations

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.


StatusReleased
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(2 total ratings)
AuthorTobias V. Langhoff
GenreSimulation
Tagschip-8, chip8
Code licenseUnlicense
Asset licenseCreative Commons Zero v1.0 Universal
Average sessionA few minutes
InputsKeyboard, Touchscreen, Smartphone
AccessibilityColor-blind friendly, High-contrast, Textless

Download

Download NowName your own price

Click download now to get access to the following files:

turm8.ch8 3.2 kB
turm8.8o 18 kB

Leave a comment

Log in with itch.io to leave a comment.