哈基米

From Esolang
(Redirected from User:Pifrited/哈基米)
Jump to navigation Jump to search

哈基米 is an esolang made of 耄耋.

Introduce

First, imagine there is a 耄耋 (spidercat) on a 2D square grid that full of " ".
耄耋
Second, imagine it moves on the grid and follow a rule:
耄耋:哈基米_哈;
Third, imagine it can change the rule:
耄耋_1:哈基米_哈 哈基米?a(哈n:耄耋_2)
耄耋_2:...
Forth, imagine it can poop write character onto the grid:
耄耋_1:哈基米_哈 哈基米?a(哈n:耄耋_2)
耄耋_2:哈!n...

Commands

耄耋_n:                   Define the n rule of 耄耋.
耄耋_n                    Change to the rule n.
耄耋!                     耄耋 stop.
哈基米?n:(codes)          If 耄耋 is on n, run (codes).
哈基米?哈n:(codes)        If 耄耋 isn’t on n, run (codes).
哈基米_                   耄耋
        哈                    go straight.
        基                    turn left.
        米                    turn right.
哈基米!a                      耄耋 poop "a" onto the grid.

Examples

Hello world!:

耄耋_1:哈基米_哈 哈基米!H 哈基米_哈 哈基米!e 哈基米_哈 哈基米!l 哈基米_哈 哈基米!l 哈基米_哈 哈基米!o 哈基米_哈 哈基米!  哈基米_哈 哈基米!w 哈基米_哈 哈基米!o 哈基米_哈 哈基米!r 哈基米_哈 哈基米!l 哈基米_哈 哈基米!d 哈基米_哈 哈基米!!

Langton's ant:

耄耋_1:哈基米? :(哈基米!■ 哈基米_哈基) 哈基米?■:(哈基米!■ 哈基米_哈米) 耄耋_1

Binary counter:

耄耋_s:哈基米!- 耄耋_g
耄耋_g:哈基米? :(哈基米!■ 哈基米_基基 耄耋_b) 哈基米?■:(哈基米!  哈基米_哈 耄耋_g)
耄耋_b:哈基米?-:(哈基米_基基 耄耋_g) 哈基米_哈 耄耋_b