Brainfreak++ Challenge!

11 réponses [Dernière contribution]
JadedCtrl
Hors ligne
A rejoint: 08/11/2014

How about a fun little competition?

The goal: To find out who can make the most useful/fun program in the esoteric brainf**k++ programming language.

How to win: Make the must useful/fun program in the esoteric brainf**k++ programming language.

What you need:
-A text editor
-A sense of humour
-Patience
-The brainf**k++ manual at http://www.jitunleashed.com/bf/BF++.pdf
-The following two python scripts: https://goo.gl/HhcHx1 and https://goo.gl/ffWMGy (They're under the WTFPL Free Software license)
-Note: You may or may not need Python 2.6 to run these.

Writing brainf**k++ programs:
-Move bfpp-interp.py and bfpreprocessor.py to your working directory.
-Make a file titled "program.bfpp"
-Write your program, as described by http://www.jitunleashed.com/bf/BF++.pdf
-Run your program with "./bfpp-interp.py program.bfpp" or "python bfpp-interp.py program.bfpp"

I hope this'll be fun, and good luck to all! ^_^

JadedCtrl
Hors ligne
A rejoint: 08/11/2014

Oh, and the attached picture will be vital to writing a program-- it is an ASCII table, listing the values of every character.
Since the attached picture says that #65 is "A", a brainf**k++ program to print "A" would look like this:
+++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ +++++ .

EDIT: If you aren't using file I/O or networking for your program, I'd recommend using a regular brainf*ck compiler, as the python interpreter can be kinda buggy. In fact, the python interpreter is the only *working* implementation I've been able to find of brainf*ck++.

asciifull.gif
pizzaiolo
Hors ligne
A rejoint: 03/12/2015

I posted this on Reddit to see what they'll come up with :P

tomlukeywood
Hors ligne
A rejoint: 12/05/2014

" https://goo.gl/HhcHx1 and https://goo.gl/ffWMGy"

btw insted of telling google what pepole click on you could shorten the links using html like this:

github link

src here:
http://pastebin.com/tFiCa5uy

tomlukeywood
Hors ligne
A rejoint: 12/05/2014

i get this error when running the bf program in python any ideas?

File "bfpreprocessor.py", line 16
include_re = re.compile(r'\s*@include\(([^)]+)\)')
^
IndentationError: expected an indented block

what version of python dose it require?

i am running 2.7.6

JadedCtrl
Hors ligne
A rejoint: 08/11/2014

I've tried with 2.6 and 2.7-- perhaps you should try Python 2.6, Available here.
(Duely noted about shortening links-- thanks. c:)

onpon4
Hors ligne
A rejoint: 05/30/2012

I don't see any reason for Python 2.6 to be required, specifically. Python 2.7 is designed to be compatible with Python 2.6. Besides, the error given wouldn't be any different between these two versions.

It sounds to me like, somehow, the indentation has been stripped. I don't see why that would happen, though. I also note that the line number given is inconsistent with the file on GitHub, which to me supports this possibility.

tomlukeywood
Hors ligne
A rejoint: 12/05/2014

i copied and pasted the python src again and now it works thanks!

tomlukeywood
Hors ligne
A rejoint: 12/05/2014

i present my creation!
a ASCII to BrainF**k converter made in c(GPL v3)

please give feedback!
you can compile just with gcc main.c

Pièce jointeTaille
ASCII to brainf**ck converter.tar.gz 13.31 Ko
tdlnx

I am a member!

Hors ligne
A rejoint: 04/09/2014

I'm not a very good programmer by any means (most of my "programming" is HTML and very very crude C) so this is a fun challenge. Challenge being the key word, I feel like I'm going crazy!

tomlukeywood
Hors ligne
A rejoint: 12/05/2014

what are you trying to make?

tdlnx

I am a member!

Hors ligne
A rejoint: 04/09/2014

No idea, that's part of the problem. Right now I'm just reading and experimenting but this language is a trip.