菜就多练

From Esolang
Jump to navigation Jump to search

菜就多练 is an Esolang designed by PrySigneToFry. It is derived from deadfish.

Induct

菜,就多练;

输不起,就别玩。

以前是以前,现在是现在;

你不要拿以前和现在作对比。

你要是拿以前和现在作对比的话,

你咋不拿你刚出生时和现在作对比呢?

菜!菜!菜!

Commands

This Esolang|Deadfish|Meaning
菜          |i       |Increase
就          |d       |Decrease
多          |s       |Square
练          |Not yet |Output as ASCII

Examples

Hello, world!

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

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(chr(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.

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

Categories