Skip to content

4ffy/brainfuck-programs

Repository files navigation

Brainfuck Programs

This repository holds a collection of small programs that I have written in Brainfuck. These are tested working on the copy.sh Brainfuck interpreter, your mileage may vary with other interpreters. Programs with a .rbf extension require the Random Brainfuck variant, which should be trivial to implement into any interpreter that doesn't support it. Most of these programs are in minified form without any meaningful documentation, so they're really more to show off than to learn from.


Here is the current list of programs. If a program takes input, there should be a note at the top describing how it is used.

  • calculate_e.bf - Calculate e.
  • calculate_e_digits.bf - Calculate e, with controllable output length.
  • dice_1d6.rbf - Roll a 6-sided die.
  • dice_ndn.rbf - Perform an ndn dice roll.
  • divide.bf - Divide two numbers and print the decimal result.
  • is_even.bf - Determine whether a number is even or odd.
  • length_of_input.bf - Print the length of the input string.
  • rot13.bf - Ultra secure encryption.

If you would like to program nontrivial Brainfuck, check out this page on Brainfuck algorithms, which has been invaluable to me.

About

Collection of small programs written in Brainfuck.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published