by Tedd Lee and Eduardo Lozano
BrainFudge is a visualizer for running Brainfuck (BF) code. Given valid BF code, our program can run the code while simulating how operations are carried out. The program is customizeable: the user may run their code at different speeds and enter their own inputs.
If you don't already have it, you will need Processing to run BrainFudge.
You will also need to install p5.js mode. Open Processing and click on the dropdown that says "Java" on the top right corner of the window. Select "Manage Modes" and install p5.js from the contribution manager window that pops up.
To run BrainFudge:
- Clone this repository.
- Open Processing and go to File>Open... and locate
BrainFudge.jswithin theBrainFudgefolder in this repository (you may open while in any mode, Processing will automatically switch to the correct mode). - Press the Run button and BrainFudge should pop up in your default web browser.
To use BrainFudge:
- Enter BF code in the top input.
- Press on the play button at the bottom.
- To the left of the play button is the reset button, and to the right is the step button.
- You can change the speed using the dropdown on the bottom right.
- If needed, you may enter your input in the left textbox.
Note: In some cases, the BF code may run forever. In other cases, a desired output may take a very long time, even at the highest speed.