The half-lap test
One rule on six trits, and a check that finds a wrong trit. Every result on this page is computed in your browser when it opens. Nothing on it is typed in.
The results
This tests the arithmetic. There is no ternary chip yet: everything here runs on the computer you are reading it on.
The rule
A trit is a digit that can be 0, 1 or 2. Take six of them. Each step drops the oldest trit and adds a new one: the oldest minus the other five, counted round 0, 1, 2 (mod 3).
The ring shows the 728 trits the rule writes before it repeats, one tick each, starting at the top. The white arc is the window after the step shown, and the dashed arc, half a lap on, is its flip. Across from every tick sits its flip: a 1 across from a 2, a 0 across from a 0.
Point at the ring, or tap it, to see one tick and the tick across from it.
The check
To send a word, fold it through the same rule and keep the six trits left over: the check. The receiver folds what arrived and takes the sent check off. 000000 means the word arrived whole. Anything else names one wrong trit: its place, and which way it moved.
Click a trit to make it wrong. Once moves it one on, twice one back, three times puts it back.
This is a ternary Hamming code: 364 = (36 − 1) / 2 places and six check trits. After 364 steps the rule turns every check upside down, so place j wrong one way and place j + 364 wrong the other way leave the same difference. That is why it stops at 364.