Skip to content

Jrgil20/helloWorld_in_Brainfuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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 = ‘!’

About

hello world in brainfuck, what more can say?

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published