哈基米
Jump to navigation
Jump to search
哈基米 is an esolang made of 耄耋.
Introduce
- First, imagine there is a 耄耋(spidercat) on a 2D square grid.
耄耋
- Second, imagine it moves on the grid and follow a rule:
耄耋:哈基米_哈;
- Third, imagine it can change the rule:
耄耋_1:哈基米_哈 哈基米?哈n:耄耋_2 耄耋_2:...
- Forth, imagine it has a dictionary and can
poopwrite the nth character in the dictionary onto the grid:
耄耋哈:[a,b,c,d,e,f...] 耄耋_1:...哈基米?哈n:耄耋_2 耄耋_2:哈!n...
Commands
耄耋哈: Define dictionary. 耄耋_n: Define the n rule of 耄耋/change to the n rule. 耄耋!: 耄耋 stop. 哈基米?哈n:(command) If 耄耋 is on n, run (command). 哈基米?哈哈n:(command) If 耄耋 isn’t on n, run (command). 哈基米_ 耄耋 哈 go straight. 基 turn left. 米 turn right. 哈!n 耄耋 poop the nth of the dictionary.
Examples
Langton’s ant:
耄耋哈:[ ,■] 耄耋_1:哈基米?哈1:(哈!2 哈基米_哈基 哈!2) 哈基米?哈2:(哈!1 哈基米_哈米 哈!1) 耄耋_1