Brain F*** is an esoteric programming language which means it was made as a proof of concept. Brain F*** is an extremely minimal language with only 8 possible characters: + - . [ ] ,
anything besides those will be considered a comment. The pointer starts at position 0 and each position starts at value 0.
-
+
will increment the pointer value -
-
will decrement the pointer value -
.
will output the ASCII of the pointer value -
,
will set the current pointer value to the number that represents the ASCII of the next button press -
[
begins a loop and will loop until the pointer value is 0 -
]
closes the loop note: this is similar to end it doesn’t stop the loop it closes it
Now that you know what Brain F*** is let’s see some code.
Here is the module, it should be run on the client Module
local BF = require(script.Parent)
print(BF:Execute("++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>."))
that code will print “Hello World!”
local BF = require(script.Parent)
print(BF:Execute(",."))
this will print the key you press but only once
Because of the minimal nature of the language, it only took like 2 hours to make. I made this because not many people know about it and I want to see what this community can come up with. If you made something cool please post it here I would love to see what you made. I am going to be making a UI for this module so it is easier to use in-game and I will be posting it here. Here’s a link to get some ideas of what you can make link