- Statements ending with
.are certain,?are uncertain. - There's a 10% chance for each character in a string literal to switch case.
- Variable names must include vowels, it's too hard to pronounce otherwise.
- Operations can be performed with
+,-,*,/, and%operators, but reliable answers are not guaranteed. - Functions can be defined with
funand called withfunction_name(). - Comments can be added with
#and will be ignored. - Exception prone code can be wrapped in
tryandgotchablocks. - You can only have up to 25% of your code ending with
.to keep it uncertain, given your code is at least 12 lines long. If exceeded, the certainty will be randomly decided for every line ending with.after the 25% is hit (i.e., if the first 4 lines of your code end with.and you have 16 lines, the first 4 lines execute as normal but if the 5th line ends with., the.is ignored and a random certainty is assigned. - Any line can randomly be chosen to be skipped, simulating a drunken state.
- Any line can randomly be chosen to be repeated, simulating a drunken state.
- Information can be printed to the console with
screamand information can be taken from stdin withask. - Uncertain code ending with
?will execute with a 75% chance of success.
-
Notifications
You must be signed in to change notification settings - Fork 1
An esolang that runs code like it's drunk
License
tathyagarg/intoxicode
Open more actions menu
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Latest commit7226f5e · · | ||||
Repository files navigation
About
An esolang that runs code like it's drunk
Resources
License
Stars
Watchers
Forks
Packages
No packages published