3-h

From Esolang
Jump to navigation Jump to search

3-h is an Esoteric Programming language created By User:Buckets in 2021.

Commands Instructions
0a It will Create 3 Children At the Root Index of a In ternary.
1b It will Share the Number in the Root At the Root Index of b In ternary, To Its 3 children, Equally; If not, The remainder Will Stay In that Root Node.
2c2d Add c To the Root Index in ternary at d.
e0 At root Index e, If it equals 0, then It will Go to The Next :, but if It equals 1, It will go to The Next Next :, But If it's 2, it will Go to The Next Next Next :, But If It's None of those Then It will go to The next Command.
: Noop.
f1 Set the Root Index f, the Input value.
g2 Print the Root Index g, in ASCII then set it To 0.
0h0 At root Index h, If it equals 0, then It will Go to The previous :, but if It equals 1, It will go to The previous previous :, But If it's 2, it will Go to The previous previous previous :, But If It's None of those Then It will go to The next Command.
0i1 At root Index i, Triple the value.
0 Go to the Previous :.
1 Go To The next :.

Every Root Must have a maximum of 3 children, So if there were more, It would Add them all Up, Split them Evenly into Thirds And the Remainders would be Added To the Root Node.

"Hello, World!" Program:

272200221012002210820022108200221112002244200223220022872002211120022114200221082002210020022332002