菜就多练一一

From Esolang
Jump to navigation Jump to search

菜就多练-- is an Esolang designed by PSTF. It is ACTUALLY derived from deadfish.

Commands

This Esolang|Deadfish|Meaning
菜          |i       |Increase
就          |d       |Decrease
多          |s       |Square
练          |o       |Output as Integer

Examples

72 101 108 108 111 32 119 111 114 108 100

菜菜菜多就多菜菜菜菜菜菜菜菜练菜菜菜菜菜菜菜菜菜菜菜菜菜菜菜菜
菜菜菜菜菜菜菜菜菜菜菜菜菜练菜菜菜菜菜菜菜练练菜菜菜练就就就就
就就就就就就就就就就就就就就就就就就就就就就就就就就就就就就就
就就就就就就就就就就就就就就就就就就就就就就就就就就就就就就就
就练就就就就就就就就就就就就练就就就就就就就就就就就就就就就就
就就就就就多就就练就就就就就就就就练菜菜菜练就就就就就就练就就
就就就就就就练就就就就就就就就就就就就就就就就就就就就就就就就
就就就就就就就就就就就就就就就就就就就就就就就就就就就就就就就
就就就就就就就就就就就就练

XKCD Random Number

菜菜多练

Implementation

The following Python script is an interpreter.

prgm = input('>菜就多练 ')
accumulator = 0
for inst in range(0, len(prgm)):
    if prgm[inst] == "菜":
        accumulator += 1
    elif prgm[inst] == "就":
        accumulator -= 1
    elif prgm[inst] == "多":
        accumulator **= 2
    elif prgm[inst] == "练":
        print(int(accumulator), end="")
    else: print("Unrecognised command.")
    # Neither of the example programs specify if Deadfish's -1 and 256 rules apply in 菜就多练 

The following Sakana script is also an interpreter.

菜増作就減作多乗作练出作コ魚繰作コ

See also

Categories