Editing Brainfugd
Jump to navigation
Jump to search
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 17: | Line 17: | ||
|musicid = 482139 | |musicid = 482139 | ||
}} | }} | ||
'''Brainfugd''' (pronounced ''brain fudged'') is a [[Update 2.1|2.1]] Easy Demon level by [[Spu7Nix]], published on 24 May 2021. It is a [[Geometry Dash]] recreation of the [[Wikipedia:Brainfuck| | '''Brainfugd''' (pronounced ''brain fudged'') is a [[Update 2.1|2.1]] Easy Demon level by [[Spu7Nix]], published on 24 May 2021. It is a [[Geometry Dash]] recreation of the [[Wikipedia:Brainfuck|Brainf**k]] programming language, which consists of only eight commands. | ||
Brainfugd and its command line, menu, and visuals were all created with [https://github.com/Spu7Nix/SPWN-language SPWN], a programming language developed by Spu7Nix that compiles text-based code into Geometry Dash triggers. During the initial beta testing phase for SPWN, camila314 developed a prototype | Brainfugd and its command line, menu, and visuals were all created with [https://github.com/Spu7Nix/SPWN-language SPWN], a programming language developed by Spu7Nix that compiles text-based code into Geometry Dash triggers. During the initial beta testing phase for SPWN, camila314 developed a prototype Brainf**k interpreter with only four memory cells, which inspired Spu7Nix's implementation. | ||
== | ==Brainf**k explanation== | ||
===Overview=== | ===Overview=== | ||
Brainf**k, designed by Urban Müller in 1993 to contain the smallest possible compiler, supplies programmers with only eight commands. Normal Brainf**k compilers have access to a limitless number of memory cells, each containing a single [[Wikipedia:Unsigned integer|unsigned integer]] ranging from 0 to 255. Commands are used to shift the 'selected cell' left or right one step at a time, input numbers into cells, increment or decrement the selected cell, and run commands if the selected cell contains a non-zero value. | |||
===Commands=== | ===Commands=== | ||
| Line 38: | Line 38: | ||
===Running programs and loops=== | ===Running programs and loops=== | ||
Brainf**k programs run from left to right, running each command until the end is reached (excluding cases of the [[Wikipedia:Halting problem|Halting problem]]). The only exception is with Loops, which work in a specific way. | |||
Each Open must be paired with a Close. Once a program reaches an Open, it checks whether the selected cell's value is zero. If it is, the loop is ended, and the program skips ahead to the Open's corresponding Close. Otherwise, the loop is unlocked; the program advances to the first command inside the loop, moves right, and repeats the process as needed. | Each Open must be paired with a Close. Once a program reaches an Open, it checks whether the selected cell's value is zero. If it is, the loop is ended, and the program skips ahead to the Open's corresponding Close. Otherwise, the loop is unlocked; the program advances to the first command inside the loop, moves right, and repeats the process as needed. | ||
| Line 57: | Line 57: | ||
===Modes=== | ===Modes=== | ||
Brainfugd contains four modes from the title screen: | Brainfugd contains four modes from the title screen: | ||
*'''Tutorial''': Provides instructions and sample programs in | *'''Tutorial''': Provides instructions and sample programs in Brainf**k, explaining the level's modifications. | ||
*'''Challenges''': A series of six challenges. Considered the main gameplay section of the level. | *'''Challenges''': A series of six challenges. Considered the main gameplay section of the level. | ||
*'''Coins''': A pair of challenges that reward [[#User coins|user coins]]. Must be completed in numerical order. | *'''Coins''': A pair of challenges that reward [[#User coins|user coins]]. Must be completed in numerical order. | ||