User:Hammy/Learn BF
- This is still a work in progress. It may be changed in the future.
welcome!
this page will teach you about bf in simple steps :D
| Note: This is a work in progress, so maybe come back later and there will be new stuff. Hopefully? |
Lesson 1: Cells
BF operates on many cells on a tape. There are commands to change the cells. The "pointer" is on the first cell by default. All cells are 0 by default. If a cell's value goes below 0, different behaviours happen on different interpreters, so I will say it wraps around to 255.
Lesson Two: Cell Manipulation
Here's the new commands.
| Command | Meaning |
|---|---|
| + | Increment the current cell. |
| - | Decrement the current cell. |
Test!
Question 1
Question: After running the code +++++, what is the current cell's value?
Answer: 5
Points: 1, the most basic question in the class deserves the most basic number
Question 2
Question: After running the code +++-, what is the current cell value?
Answer: 2
Points: 5, at least you know subtraction, which is good
Lesson Tres: I/O
I/O is simple.
WIP!!! Guess you will just have to go to the actual Brainfuck page while this is being made... Or maybe you could learn Befunge?