Tagged Questions

This challenge is related to the BF language. Note that challenges that require the answers to be in a specific language are generally discouraged.

learn more… | top users | synonyms

-1
votes
0answers
159 views

Write a brainfuck embedded DSL

It's 2014 and you're working for BigT€ch. Your boss Stefanus Anointer has been keeping an eye on the big trends in the tech industry and seen that the programming language BrainFuck has become quite ...
73
votes
59answers
9k views

BrainF***edBotsForBattling - A Brainf*** Tournament

All bots at the battle arena suddenly got brainfucked and no one can explain why. But who cares as long as they are still able to fight - although Brainfuck is the only language they understand ...
7
votes
0answers
180 views

One source, lots of Brainfuck [duplicate]

Write a Brainfuck interpreter that can interpret multiple Brainfuck programs embedded within the same source. The syntax is the same except that the instructions must be prefixxed with the number/ID ...
4
votes
3answers
812 views

Brainfuck Sorting

Write a program in brainfuck that accepts input of 4 ASCII characters as numbers (from 32 to 126) and outputs the numbers or ASCII equivalent sorted in ascending order. Requirements: Your program ...
5
votes
3answers
540 views

Pi language interpreter

Introduction From Esolangs.org : Pi is based on the brainfuck language and uses the same instructions as it. Pi works by calculating pi digits and introducing errors in some random digits of ...
5
votes
3answers
713 views

Write a Boolfuck Compiler or Interpreter

From now on considering the word "fuck" to be non-profane would be a good idea Make the smallest compiler or an interpreter for the Brainfuck variant, Boolfuck. It has to be executable in Windows, ...
5
votes
4answers
384 views

Partially Solve the halting problem for brainf***

To solve the Halting Problem you are given a description of a program, and must determine whether or not it will ever finish. You can never do this for all programs. Yet for programs like (in ...
7
votes
1answer
452 views

Brainf**k Debugger

Your challenge is to take input like this (a Hello World program): ...
8
votes
5answers
721 views

Hide a Brainfuck greeting in other code

The goal is to write a program (anything except explicit brainfuck) which prints Barney Stinson's best rule: New is always better. when interpreted normally, but Legen... wait for it... ...
0
votes
0answers
116 views

Shortest BF program to output uppercase 'A' [duplicate]

[moved from Stackoverflow] The following brainfuck program outputs the letter 'A' and it is the shortest such program known to me. That is why I am asking the BF experts here: Do you think there is a ...
12
votes
9answers
2k views

Write a brainfuck translator

In any programming or scripting language x, write a program that takes a valid brainfuck sourcecode from stdin and output, to stdout, the sourcecode of a program, written in language x, that would ...
0
votes
0answers
97 views

Shortest program to produce shortest program [duplicate]

I thought this was a nice level of meta-golf. The challenge is: Write a program that solves the following problem: "For a given ASCII string, output the shortest brainfuck program that prints that ...
3
votes
0answers
340 views

Create a server in Brainfu*k [closed]

Create a brainfu*k program that can act like a simple server. It will be given a JSON representation of a file folder to serve from. It'll look something like this: { "something.html":"<!DOCTYPE ...
11
votes
3answers
693 views

Minify Brainfuck

Your challenge is to minify Brainfuck code, according to these rules: Remove anything that is not one of +-><[].,. For any group of consecutive + or - characters, if the amount of +s and -s ...
8
votes
2answers
580 views

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 ...
3
votes
3answers
343 views

BrainF***-optimize a series of numbers

An often-used trick in BF-golfing is something I call "multiply then add." Let's say that you want to initialize the memory to contain a series of numbers, like 87 75 68 96. The simplest way to do ...
10
votes
3answers
1k views

Bitwise Operators in Brainfuck

Your task is to create one brainfuck program for each of the following binary operators. Each program should take one or two 8-bit numbers (A and B) from input and calculate the specified operation: ...
0
votes
0answers
132 views

Brainf*** interpreter [duplicate]

Possible Duplicate: Interpret Brainfuck As the name suggests, the challenge is to create the smallest brainf** interpreter, in the language of your choice. It can either accept input from ...
14
votes
6answers
2k views

Brainfuck Golfer

One of easiest code written by a programming language is a program printing sequence of characters (ex. "Hello, world!"). However, some esoteric programming languages like Brainfuck, even this ...
7
votes
4answers
868 views

Busy Brain Beaver

Write a brainfuck program of no more than 256 characters that takes as many steps as possible, but does not loop infinitely. The program may not take any input. More specifically: Assume an ...
9
votes
5answers
1k views

Fastest Sort in BrainF***

After having implemented QuickSort in BrainF***, I realized it probably wasn't that quick. Operations that are O(1) in normal languages (like array indexing) are significantly longer in BF. Most of ...
6
votes
1answer
381 views

How to encode shortest brainf_ck strings

This is an interesting one. I have written a short program in objective-c to encode a string into a brainf_ck string, this is what it looks like: NSString *input; // set this to your input string ...
7
votes
4answers
1k views

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", ...
20
votes
1answer
2k views

Implement QuickSort in BrainF***

As discussed in the Lounge room on Stack Overflow: if you can't implement the Quicksort algorithm given en.wikipedia.org/wiki/Quicksort in any language you have minimal knowledge of, you might ...