Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
82 views

I am making a Brainfuck clone and my interpreter isn't working: // _ dicrement the instruction pointer by 3 if the current cell value is 0 // <, >, +, -, ,, . are the same as in bf .global ...
Isaac Luft's user avatar
3 votes
2 answers
146 views

when I decrement a value in a check cell by 5 to determine if the value the user entered is greater or less than 5, two situations occur: 1) when the input is greater or equal than 5, the result is ...
user31796582's user avatar
0 votes
1 answer
67 views

In Brainfuck loops continue until they finish an iteration on a NULL cell. This means it is easy to move over a variable number of cells as long as there is a NULL cell to end on, for example a NULL ...
Archimedes5000's user avatar
0 votes
1 answer
167 views

>, >, << convert from ascii +++++ +++[>----- ->----- -<<-] (a) multiply >[>[->+>+<<]>[-<+>]<<-] (b) separate numbers >[-]>+> >...
Bane's user avatar
  • 11
1 vote
1 answer
542 views

I wrote a BrainFuck compiler in JavaScript and it works fine with this input: ++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++.....
Laczkó Lajos's user avatar
1 vote
2 answers
200 views

I written a Interpreter in C++ for Brainfuck und it works fine with "Hello World" Brainfuck Code to give me the right output. Now I'm trying a different Brainfuck Code, that generates the ...
PascalND's user avatar
0 votes
0 answers
95 views

I'm writing a brainfuck interpreter in C++. One of its language features is that in a loop if the current byte != 0 then go back to the beginning of the loop until it's == 0. My approach is reading a ...
ahmed's user avatar
  • 98
1 vote
2 answers
112 views

I have this bf code: > ++++ ++ @1=6 How do I copy current value (6) in address @1 to the specified address for example address @8 I can do it with this: > ++++ ++ @1=6 [ >>>> >&...
Muhammad Ikhwan Perwira's user avatar
1 vote
1 answer
139 views

I am trying to write a brainf*ck Interpreter in C. The current pointer, the array and the length of the array are given in a struct. The interpreter method receives pointers to the array struct and ...
HeapUnderStop's user avatar
0 votes
1 answer
127 views

How do I make it so that the question is asked before the input in Brainfuck? What I want: What is your number: 3 What I get: 3 What is your number: So the input executes before the text is printed ...
Baseed's user avatar
  • 1
0 votes
0 answers
153 views

I am trying to covert a string to an ascii code in rust to turn the string into BrainFuck code: (The variable "input" is the string "hello" and this snippet starts at line 12) for ...
Cody's user avatar
  • 3
1 vote
2 answers
272 views

I have a simple Brainfuck program called "PuraPuraNanya", which prints the character + to the screen 20 times using a loop and arithmetic operators. ++++++++++[>+>+++>++++>+++++&...
W Kristianto's user avatar
  • 9,373
1 vote
1 answer
316 views

I was wondering how I could print this value as a number NOT as a character an example would be that the pointer is on (125) (0)(0)(125)(0)(0) In this case when this snippet of would start, the ...
Pertz Hertz's user avatar
0 votes
0 answers
126 views

I'm currently working on an operating system. I have written an interpreter (which is also a compiler, oddly enough, but that's not the point). I basically did everything; I just need to build a GUI. ...
Xulum12's user avatar
  • 19
2 votes
1 answer
545 views

I've been experimenting with the BF esolang today, as I graduated from hello world to an addition program, (which requires the data take in command), I could not for the life of me figure out how this ...
WrathOfCon's user avatar
0 votes
0 answers
132 views

I have been writing a brainf*ck interpreter in rust, and was stupid enough to not use a lexer. I use recursion to tackle loops. let mut ret = exec(i, file, tape, ptr); i = &(ret.0); file = &...
SamuelFischerCode's user avatar
0 votes
2 answers
261 views

How can i sum a and b without removing them? Example we have [A,B] and i want [A,B,A+B] and not [A+B,0]? ;>; < [->>+>+<<<] > [->+>>+<<<] >> [<&...
31b4's user avatar
  • 5
1 vote
1 answer
335 views

I am currently trying to program a Brainfuck interpreter in Java. I try to optimize the Brainfuck code by removing comments and code that is redundant (I use regex for this). However, my unoptimized ...
Setvizan's user avatar
0 votes
2 answers
270 views

I am trying to write a program (which I'm sure has been done before, just trying to challenge myself) that takes two user inputs per loop, one for the letter/number, and one to check if the user is ...
jjToad's user avatar
  • 1
4 votes
2 answers
326 views

I am working on a physical breadboard 8bit CPU that directly interpret brainfuck. The language specification indicates that both opening and closing brackets have logic : [ => Jump to matching ] ...
Gatoyu's user avatar
  • 702
0 votes
1 answer
109 views

so I started looking into Brainfuck and I found this line as a part of a "Hello World" Program: -[>+<-------]>-. This line produces the output "H". If I understood it ...
Tom291's user avatar
  • 601
2 votes
2 answers
144 views

I have this pretty simple program: +[----->+++<]>. +[----->+++<]>. Trying to log two g's however the output is gØ how can i make a newline break the code? operator? Not possible?
bruh5000's user avatar
0 votes
1 answer
86 views

I am making a program that makes a random Brainf*ck program in python and runs it. I have an interpreter and I need it to check for long loops (more than 5 seconds). The interpreter is: while i < ...
Unresolved's user avatar
0 votes
2 answers
83 views

I know that may seem silly, but yesterday, I found out about Brainfuck, and had fun with it. I made some programs and had a lot of fun. Though, today, when I try the same program, it simply prints ...
PetitFrapo's user avatar
3 votes
2 answers
184 views

I'm trying to make a program in Brainfuck which I think is also called "Brainflake", that will add two single digit decimal integers input with ASCII numeric characters and display the sum ...
Jose's user avatar
  • 31
-1 votes
1 answer
192 views

This might sound stupid, but i need help with brainfuck. so im writing an interpreter in c#, and I tried to use my interpreter on a real piece of code (+[----->+++<]>+.+.) which should print ...
bruh's user avatar
  • 93
2 votes
2 answers
263 views

How would you go about getting the absolute of a number in brainfuck? I originally thought squaring the number ([->+>+<<]>>[-<<+>>]<<[>[->+>+<<]>&...
Demi's user avatar
  • 23
3 votes
2 answers
761 views

There's multiple questions here already, but I'll still proceed. This is a simple BrainFuck interpreter. I figured out all the other symbols, but I can't figure out how to implement loops. Can anyone ...
justanotherguy's user avatar
3 votes
1 answer
152 views

// if x = y then {if_code}; else then {else_code} ,>,< / empty memory [->-<]> / (x)'y [>->]< / 0'(y-x) +[ {if_code} ->> ]< / {if x=y then} (0)'0; {else then} 0'...
user17301834's user avatar
1 vote
1 answer
240 views

I'm trying to write an optimisation feature for my brainf*ck interpreter. It basically combines same instructions into 1 instruction. I wrote this function but It doesn't work properly: pub fn ...
d3r1n's user avatar
  • 45
0 votes
1 answer
63 views

I was wondering abt bf loops then it just got much more complicated. when you open the loop([) at the pointer location 0, then go forward(>) in the loop([>). Does the new location have to be ...
AllinOne-Gaming's user avatar
2 votes
1 answer
293 views

I want to set an array of n elements to a predefined value (which isn't copying from a cell but setting a value from the code itself). How could I do that? without changing other cells as I went ...
silver takana's user avatar
0 votes
1 answer
266 views

So I tried doing my own Brainf*ck interpreter in C++, and everything was going fine until I tried this program: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[.-] It just goes to ...
user avatar
1 vote
1 answer
387 views

I have written a simple brainfuck interpreter in c. all the commands work fine, except for loops. currently, I am handeling them like this: I have a function to find the matching square bracket: int ...
MichaPehlivan's user avatar
-1 votes
2 answers
566 views

I'm building my first interpreter to learn Rust better, and I'm sort of stuck on this problem, because me tape/memory is a vector of unsigned 8-bit integers, but loops sometimes result on negatives. I'...
Caio Ishikawa's user avatar
1 vote
1 answer
224 views

I've used the BrainFuck Visualizer to check out this small piece of code but I don't understand how the exit conditions work on the loops starting with -. It suddenly just stops and jumps to the next ...
Mout Pessemier's user avatar
3 votes
0 answers
45 views

Can I assume that if you do - on a tape spot with 0, that it loops around to 255? Otherwise I don't understand how you can start a loop with - without first incrementing? e.g: +[----->+++<]>+....
Mout Pessemier's user avatar
-1 votes
1 answer
106 views

Trying to make a brainfuck interpreter in python from scratch just for fun, I'm almost done with the code however this small error is coming up whenever I try interpreting ",[>++++<]" ...
Tristen Gordon's user avatar
-1 votes
1 answer
170 views

I am trying to make a brainf*** interpreter in c++. when I test it with the Esolang hello world example: ++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-...
Ed May's user avatar
  • 41
4 votes
1 answer
233 views

I need to learn how to display this text in BrainFuck among other programming languages, BrainFuck included.
Marcox's user avatar
  • 102
1 vote
0 answers
329 views

I am writing a cpp program to execute live inputs of Brainfuck code, like how you can use python live in a terminal. Everything works fine, except when nested loops come into play: This nested loop ...
LeSgHsW's user avatar
  • 11
1 vote
1 answer
273 views

My array looks like this at the moment, data pointer at the [n]. The code will give a number from 2-10 0 10 45 45 45 45 45 45 45 45 45 0 [n] 0 I need to move the pointer to the left by n spaces ...
S.Wil's user avatar
  • 11
0 votes
1 answer
83 views

I know nothing about grammars or that type of stuff and i don't know how to make brainfuck work in Atom. I have installed script and brainfuck, but if I try to run it just prints the error "...
ValliHalli's user avatar
0 votes
1 answer
682 views

I started to write a BrainF*ck interpreter for my OS in 32-bit x86 assembly. I have already written one in C that just works and tried to implement it in assembly but the one written in assembly doesn'...
Richard Anyalai's user avatar
3 votes
2 answers
187 views

So my aim: put the value n into a cell with smallest amount of instructions. I could do + twenty times for the value 20. But a shorter way is for example to do >++++[<+++++>-]<. How could ...
dev_null's user avatar
1 vote
1 answer
472 views

According to this comment from the general question Is it possible to create a quine in every turing-complete language? it seems like it is said that it's possible. However I didn't find any Ook! ...
Butanium's user avatar
  • 818
-4 votes
1 answer
158 views

I decided to write another one BF interpreter in order of personal development, and despite the fact that this is his second version written from scratch, one way or another it doesn't work correctly ...
BurovB's user avatar
  • 1
2 votes
1 answer
150 views

I'm trying to run a hello world program with the brainfuck implementation that I made this week but I'm getting a strange output. This is the hello world file that I'm trying to run. ++++++++[>++++[...
AKRA's user avatar
  • 298
0 votes
0 answers
79 views

I am writing a Brainfuck interpreter in Scheme (Chez Scheme). It seems like no matter which Brainfuck program I throw at it, it never works, and I cannot figure out why. I figured that I would try it ...
Caspian Ahlberg's user avatar
0 votes
1 answer
89 views

I am working on a C to Brainfuck transpiler, based on the translation described in Brainfuck's Wikipedia page. Each program that I have tested works perfectly, until the end. In the beginning, I ...
Caspian Ahlberg's user avatar

1
2 3 4 5