Quantcast
Channel: Active questions tagged brainfuck - Code Golf Stack Exchange
Browsing all 31 articles
Browse latest View live

Brainf*** subprograms with unique outputs

You should write a 100-byte long brainfuck (BF) program.One character will removed from it in every possible way the resulting 100 new (99-byte long) programs. E.g. for the program ++.>. the 5...

View Article



Print 'A' 1000 times with BrainFuck

What is the best BrainFuck code (in terms of code size) to print 'A' 1000 times ?My approach is:set 'A' to p[0]set 255 to p[1] to display 255 'A', 3 timesset 235 to p[1] to display 235 'A'This is not...

View Article

Lazy brainfuck programmer [closed]

BackgroundJoe is working on his new Brainfuck answer on Codegolf. The algorithm he's using to solve the challenge is a bit complicated, so Joe came up with idea of simplifying his Brainfuck notation to...

View Article

Tips for golfing in brainfuck

What general tips do you have for golfing in brainfuck? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to brainfuck (e.g. "remove...

View Article

Brainfuck movement [closed]

A normal Brainfuck program starts out with an array of cells, all containing the number 0. This program, on the other hand, must be able to run starting with any number x in the leftmost cell. The only...

View Article


Convert Brainfuck to a Non-Golfing Language

Input:Any Brainfuck program. This includes brainfuck programs with comments such as +++COMMENT[>+++<-]..Output:A program in one of the below languages that produces the same output as the...

View Article

Generating BF-code with single purpose

I'd like to see you create code (in any programming language) that output working BF (Brain***k) code. Your program have a single character input on stdin. The input should be one digit ("0", "1", "2",...

View Article

Brainf*** Golfer

One of easiest code written by a programming language is a program printing sequence of characters (ex. "Hello, world!"). However, someesoteric programming languages like Brainfuck, even this simplest...

View Article


Image may be NSFW.
Clik here to view.

5 tasks in (modified) BrainF**k from the Estonian OI [closed]

IntroductionThis challenge appeared in the 2020 Estonian Open Informatics Olympiad and was created Sandra Schumann. I thought it was interesting because it involves symmetry and is quite hard even to...

View Article


RLE Brainfuck dialect

RLE Brainfuck(related to BF-RLE)The hypothetical RLE (Run-Length Encoding) dialect of Brainfuck accepts the symbols for the 8 commands and also accepts digits. The digits are used to represent the...

View Article

BF memory layout optimizer

Given a BF program consisting of only the characters +-[]<>., with the property that there's an equal number of < and > between every matching pair of [].You have to find the shortest...

View Article

Generate Brainfuck for the numbers 1–255

Write a program that, for the numbers 1 through 255, prints out BF code that will produce the given number in some byte of the array, plus a newline.For example, the first four lines of the output...

View Article

Enumerate valid Brainf**k programs

Golunar/Unary is a way to encode all valid Brainfuck programs, but it is not an enumeration, since most natural numbers do not correspond to a valid program.For the purpose of this challenge, assume a...

View Article


Brainf*** to tinyBF converter

You don't need to know these languages to participate. All necessary information has been provided in this question.You should write a program or function which given a brainfuck (BF) code as input...

View Article

Will one-cell brainfuck halt?

Brainfuck is an esoteric programming language that is Turing Complete, meaning you can't tell whether a given program will halt without running it. It's cell-based and has an infinite tape of cells,...

View Article


Translate an arithmetic expression to Brainfuck

Write a program that translates an arithmetic expression to a Brainfuck program which evaluates the expression and prints the result in decimal numbers. For example, this arithmetic expression,2 * (3 +...

View Article

Verify Brainfuck program

Yet another Brainfuck parsing problem, but this time... different.You are working in the Infinite Monkeys Incorporated, the company making Brainfuck programs, to solve various interesting problems (by...

View Article


Convert 256-wrap brainfuck into 257-wrap brainfuck

Usually each cell in brainfuck has 256 states, which is not enough to tell whether input is EOF or a character (usually \xFF). To fix it we can add one more state to it, and EOF (256) isn't mistake...

View Article

ASCII Brainfuck

Given a random code written using Brainfuck commands. You program should translate that code into the following ascii art: each Brainfuck command represents as 5x9 array of A and B symbols. All...

View Article

Image may be NSFW.
Clik here to view.

Largest Number in Brainfuck BigInt for each program length up to 50 instructions

This challenge is for the largest finite number you can get BrainFuck programs of given lengths to contain in memory.We must use one of the BF versions that uses big integers for the cells rather than...

View Article
Browsing all 31 articles
Browse latest View live




Latest Images