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.

SecretLang

From Esolang
Jump to navigation Jump to search

SecretLang is another programming language designed by PSTF inspired by Guess.

How Will It Work

First, I'll provide the programs. After I finish writing 7 programs, I guess the guessing channel will be opened, and then any user can come in to guess the meaning of each command for each character. Then, when a user makes a guess, I will give the result of their guess. If the user guesses a command wrong three times in a row, I will show the correct usage of that command.

Illegal Things

  • Tampering with existing programs
  • Tampering with other users' guesses
  • Adding content that belongs neither to the program nor to guesses
  • Adding a lot of meaningless content
  • Deleting a large amount of content
  • Making guesses before the guess channel is open

Programs

1. Hello, World!

⎕ <- "Hello, World!"

2. Cat Program

⟳ (1) {⎕ <- ⌨}

3. Sgn Machine

\x#int; x <- ⌨; ?(x > 0){⎕ <- 1}:?(x < 0){⎕ <- -1}:!{⟳ (1) {⎕ <- 0}}

Explanation: Take an integer. If it’s positive, output 1; if it’s negative, output -1; if it’s 0, endlessly output 0.

4. Collatz Sequence

\x#int; x <- ⌨; ⟳ (x ≠ 1) {?(x mod 2 = 0){x <- x ÷ 2; ⎕ <- x}:!{x <- x × 3 + 1; ⎕ <- x}} ⎕ <- "All Done!"

Input:

12

Output:

6 3 10 5 16 8 4 2 1

Guessing Area

NOT AVALIABLE HERE

See Also

Guess, Mystery, Guessing, and User guessed

Categories