A downloadable tool for Windows

Download NowName your own price

brainfrick is a Brainfuck interpreter made in GML using GameMaker Studio 2.

Features:

  • Run code written in brainfuck
  • Destroy any and all remaining brain cells you ever had.
  • Save and load programs you've written or whatever

What and why?

I wanted to challenge myself. Brainfuck is a super simple programming language. Maybe not in terms of programming for, but in terms of how it works internally. It consists of 8 commands that are all incredibly simple in nature. The entirety of the programming language consists of one array with 30,000 byte cells. All of these cells start at 0 and the program starts on the leftmost entry in the array (Think array[0])

Commands:


>

      

Increases the data pointer.
eg. If the pointer was at 3, you would be at array[2],

> would bring you to array[3]


<


Decreases the data pointer.
eg. If the pointer was at 3, you would be at array[2],
< would bring you to array[1]




Increases the current byte.
eg. If the pointer was at 3, you would be at array[2],
+ would be the equivalent of array[2]++

-


Decreases the current byte.
eg. If the pointer was at 3, you would be at array[2],
- would be the equivalent of array[2]--

.


Prints the current byte.
eg. If the pointer was at 3, you would be at array[2],
. would be the equivalent of printing the ASCII character of array[2];

,


Accepts a byte of input.
eg. If the pointer was at 3, you would be at array[2],
, would be the equivalent of setting array[2] to equal the byte inputted

[


Loops everything following it until the current byte equals zero.
eg. If the pointer was at 3, you would be at array[2],
[ would be the equivalent of while(array[2] > 0){

]


Tells loop where to end, and where to skip to once loop has ended.
eg. If the pointer was at 3, you would be at array[2],
] would be the equivalent of }

Closing thoughts:

This was interesting to make. Only took me about 3 hours to create and was really good for learning how programming languages as simple as Brainfuck actually work. If it's something you would all be interested in then I may follow this up with a tutorial on how to recreate the language in GML yourselves, explaining every step along the way. Let me know what you think :)

Download

Download NowName your own price

Click download now to get access to the following files:

brainfrick v1.0.0 4 MB

Leave a comment

Log in with itch.io to leave a comment.