We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

User guessed

From Esolang
Jump to navigation Jump to search

Inspired by User programmed and Guess, everybody are welcomed to add commands, but implicitly. Created by User:I am islptng.

Rules

To add a command:

  1. Write an example using it.
  2. Add a row in the "Commands" and remember to put your name!

To guess:

  1. Make your guess in the "Commands" chart.
  2. Remember to put your name.

To grade a guess:

  1. Highlight the correct part green, and strike the incorrect part.

To ask for an example program:

  1. Create a new section in the "Examples".
  2. Describe the program, and leave both your name and who you want to write the program.

Reserved characters

  • Tab, Space: Keyword separator.
  • Semicolon and newline: Command separator.
  • Brackets: Code block.
  • Parentheses: String literal. Can be nested.
  • /* and */: Comment.

Commands

Command Created by Guess
> User:I am islptng User:Helpeesl : Something related to numbers

Assignment

# User:I am islptng User:Helpeesl : input

Declaration

\? User:I am islptng User:Helpeesl : Non specific if | Input if

Boolean type

>> User:I am islptng User:Helpeesl : Something related to strings

Input/Output

? User:I am islptng User:Helpeesl : Specific if

While loop

&&[...]@(...) User:PrySigneToFry User:PrySigneToFry's hint: It is about loop.
User:Yoyolin0409: Repeat the contents within the (), using the number in square brackets [] as the number of times
πŸ§€ User:Esolangist User:PrySigneToFry: Output the entire program's source code.

User:I am islptng: Output Do you like cheese? I do. πŸ§€

\2 User:PrySigneToFry User:Hammy: Number type
b @ a : c User:PrySigneToFry User:Hammy If b, then do a, otherwise do c

If b is true, evaluates into a, otherwise evaluates into c.

β―‘~[a],[b](where a, b ∈ Z) User:PrySigneToFry User:↑: Random integer generator range a to b
❂ User:PrySigneToFry User:None1: Return the program's source code.
` [a] [b] [c] User:↑
Β΄ [a] [b] [c] User:↑
β†· [a] [b] [c] User:↑ User:↑ Hint: It is not related to loops.
\1 User:↑
! User:None1
$ [a] [b] User:None1
_ [a] User:None1
. User:None1
\ε­— User:PrySigneToFry User:Yoyolin0409: Convert the input value into a value similar to "ASCII temporary/ASCII data"
User:↑: (CJK) ascii data type
Correct answer: Rune type(similar to char in C++)
ε›Έ x \y User:PrySigneToFry User:↑: Convert x's data type to y
Do you like cheese? I do. User:Yoyolin0409 User:PrySigneToFry: APLWSI interpreter.
B o x y j User:PKMN Trainer Hint: x must be a number from 0 to 5
L x User:PKMN Trainer Hint: Related to above command
β†’ j User:PKMN Trainer Hint: Related to above command

Examples

Truth machine

# \? 0;>> > 0
0 ? { 0 > >> };0 > >>

Quine

Do you like cheese? I do. πŸ§€

Another quine

❂ > x; x > >>

Output:

❂ > x; x > >>

Even or Odd?

Written by PrySigneToFry.

# \2 x;>> > x
x Γ· 2 == 0 @ {(Even!) > >>} : {(Odd!) > >>};

Hello, World!

(α€Ÿα€œα€­α€― α€€α€™α€Ήα€˜α€¬α€œα€±α€¬α€€!) > >>

Encoding: UTF-8

FlipShift

# \1 x;>> > x
# \1 y;>> > y
# \1 z;>> > z
β†· [x] [y] [z]
` [x] [y] [z]
` [x] [y] [z]
` [x] [y] [z]
Β΄ [x] [y] [z]
` [x] [y] [z]
Β΄ [x] [y] [z]
Β΄ [x] [y] [z] > >>

Nope.

!;$ 14 3;_ 5;.

Throw dice

β―‘~1,6 > >>

ASCII -> Integer

# \ε­— x; >> > x
ε›Έ x \2; x > >>

nop

Do you like cheese? I do. /*Isn't this too simple?*/

Infinite loop

%...&

Compare to 15

# \2 x; >> > x
# \ε­— o
B 0 x 15 0
B 1 x 15 1
B 2 x 15 2
L 0; 0x3D > o; o > >>; β†’ 3
L 1; 0x3C > o; o > >>; β†’ 3
L 2; 0x3E > o; o > >>; L 3

PKMN Trainer (talk)