Battlethought

From Esolang
Jump to navigation Jump to search

Battlethought simulates a battle between the programmer and their thoughts.

History

User:Cinnamony made this. Here is a quote from him:

the mind is powerful. sometimes it gives you thoughts you dont want, and sometimes they go against you :(

He acknowledges the fact of the mind becoming powerful, and he acknowledges the fact that some people have unwanted thoughts. He then makes a programming language out of it.

Thinking about something else

You use think to think about something else. The perks last for 2 commands after the think command, and then you can't use it again for 5 commands.

Perks

You can use the non-protection commands, that don't protect the outside from the thoughts.

Commands

Use protect to protect the outside world from your thoughts. If you don't and use a non-protection command, the non-protection command doesn't work and it prints out "Your friend is going to get struck by lightning".

Non-protection commands

print() - Prints something.
[var] = [thing] - Sets a variable to something.
input - Asks for user input.
wait() - Waits an amount of seconds.
TERMINATE - Terminates the script.
kniht - Does something. Kinda vague, though.

There are no loops because these should only work for 2 commands after think. Using protect works after think, but it does nothing.

Hello World

think
print("Hello, World!")
TERMINATE

Cat

think
b = input
print(b)

Palindrome

think
kniht