Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jrgil20/helloworld_in_brainfuck
hello world in brainfuck, what more can say?
https://github.com/jrgil20/helloworld_in_brainfuck
brainfuck hello-world
Last synced: 14 days ago
JSON representation
hello world in brainfuck, what more can say?
- Host: GitHub
- URL: https://github.com/jrgil20/helloworld_in_brainfuck
- Owner: Jrgil20
- Created: 2024-06-27T21:17:28.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-06-27T21:53:50.000Z (4 months ago)
- Last Synced: 2024-10-11T05:20:15.933Z (28 days ago)
- Topics: brainfuck, hello-world
- Language: Brainfuck
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# helloWorld_in_Brainfuck
In this project, we are going to program in Brainfuck. Brainfuck is an esoteric programming language known for its simplicity and extreme minimalism.
## Instructions
1. Start with a pointer at the current cell, initialized to 0.
2. Read the Brainfuck code, which consists of a series of special characters.
3. Perform the following operations based on the encountered characters:- `>`: Move the pointer to the next cell.
- `<`: Move the pointer to the previous cell.
- `+`: Increment the value of the current cell by 1.
- `-`: Decrement the value of the current cell by 1.
- `.`: Print the ASCII value of the current cell.
- `,`: Read an ASCII value from the input and store it in the current cell.
- `[`: If the value of the current cell is 0, jump to the instruction after the corresponding closing bracket.
- `]`: If the value of the current cell is not 0, jump to the instruction after the corresponding opening bracket.4. Repeat step 3 until all the Brainfuck code has been executed.
# Printing "Hello world!" in Brainfuck
To print the phrase "Hello world!" in Brainfuck, we need to convert each character to its ASCII value and then use the `.` command to print it.
72 = ‘H’
101 = ‘e’
108 = ‘l’
111 = ‘o’
32 = space
87 = ‘W’
114 = ‘r’
100 = ‘d’
33 = ‘!’