Tetrahedron
- This is still a work in progress. It may be changed in the future.
Tetrahedron, with hexagony as its inspiration, is a fungeoid created by user:cleverxia that operates on two infinite tetrahedrons: code and data.
Program flow
first, the program is loaded into "program tetrahedron" from top to bottom, up to down, left to write. for example,
123456789abcdefghijklmnopq
will result in this tetrahedron ($'s are nulls):
1
2 3
4
5 6 7
8 9
a
b c d e
f g h
i j
k
l m n o p
q $ $ $
$ $ $
$ $
$
the data tetrahedron starts with all zero's.
IP starts at the top corner, heading down-west (DW).
UN UW UE NW NE W IP E SW SE DW DE DS
when the IP overflows at the DW direction it wraps to the top keeping the same direction. same for DE,DS,UN,UW,UE. when IP overflows at the E direction, it "warps and reflects to the other side" like this:
$ Z 3 6 9 5 0 X 2 $ $ 6 $ 8 5 $ 0 1 2 Y
where numbers represent the time that the IP comes there, X contains 1/4/7, Y contains 3/7, Z contains 4/8. essentially the same for W/NW/NE/SW/SE.
- This is still a work in progress. It may be changed in the future.