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: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
` [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

Examples

Truth machine

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

Quine

Do you like cheese? I do. 🧀

Another quine

❂ > >>

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 > >>