A Game Engine for Brainf*ck
Step 1. Write your source code into a plain text file
Step 2. BFEngine srcfile.dbs
(where srcfile.dbs is your source file)
Step 3. Type input into the console window
BFGE Visualizes the 1024 byte array that Brainf*ck uses in a 32x32 square grid. To stop tearing and flashing an extra command is added "*" used for updating the screen. Otherwise the langauge is indentical. Tutorials for learning Brainf*ck can be found online but the commands are:
-
">" Increment the pointer
-
"<" Decrement the pointer
-
"+" Increment the value at the pointer
-
"-" Decrement the value at the pointer
-
"[" Begins while loop
-
"]" Goes to corresponding begin loop if value at pointer is not 0, otherwise it continues to the next instruction
-
"." Output the current byte to the screen (Not usually used in this case)
-
"," Waits for next key typed into console and stores it into byte at pointer
-
"*" Used for drawing the current array to the screen
+[++++++++++++++++++++++++++++++++++++++++++>>++*] ;Draws a checkerboard pattern
+[>,*] ;Shows the text the user types color coded