Guesslang

From Esolang
Jump to navigation Jump to search

Inspired by Guess's Esolang by User:Yoyolin0409

Rule

Here are a few examples to help you guess the usage and syntax of everything

Generally speaking, all the content in the examples must be the shortest method to achieve this effect

Example

Hello, world!

io:
    nil
    "Hello, world!"

99 bottles of beer

import ziptext,axiom
axiom y=x-1,0="No"
var x=99,t=ziptext("{x} bottles of beer on the wall,\n{x} bottles of beer.\nTake one down, pass it around,\n{y} bottles of beer on the wall.",99,run="x-=1")
io:
    nil
    "No bottles of beer on the wall,\nNo bottles of beer.\nGo to the store, buy some more,\n99 bottles of beer on the wall."

Quine

import keyboard
io:
    nil
    keyboard(Crtl,A).rev

Fibonacci sequence

var x=1
while True:
    io:
        nil
        x
    var x,y=x+y,x

Factorial

try:
    io:
        x
        x!
except:

Sieve of Eratosthenes

var i=input(),n=0,l=[{∈ℤ_<i|>1}],x=unassigned
while n<sqrt(i):
    if n@{x∈ℤ_>1∣x<n}==0 then l.remove(x)
print(l[{∈ℤ_<i|>-1}])

Guess Area

Guess Example:

User:YourUserName

brahbrahbrah : brahbrahbrah
brahbrahbrah : brahbrahbrah
brahbrahbrah : brahbrahbrah

Reply

brahbrahbrah, brahbrahbrah, and brahbrahbrah are not actual things

brahbrahbrah is not actual thing

brahbrahbrah, brahbrahbrah, and brahbrahbrah are correct

brahbrahbrah is correct

brahbrahbrah, brahbrahbrah, and brahbrahbrah are wrong

brahbrahbrah is wrong

brahbrahbrah, brahbrahbrah, and brahbrahbrah are almost correct

brahbrahbrah is almost correct

In fact, I can't understand your guess about brahbrahbrah, brahbrahbrah, and brahbrahbrah

In fact, I can't understand your guess about brahbrahbrah

The format of {TEXT} is incorrect

User:Dragoneater67

This is still a work in progress. It may be changed in the future.

Firstly, io obviously has this syntax:

io:
 input
 output

input is a variable to store input into(?) output is a what needs to be printed. Either can be replaced with nil to avoid taking input or printing something. ziptext takes a string, replaces all occurences of {variable}, with the value of variable variable. keyboard takes a list of keys, presses them. The result has a properyty called rev, which is the current selection.

Reply

io is correct

nil is almost correct

" " is not actual thing

Category