As you may know, i am the admin of the german forum and organizer of the PureContest.
A thread over a relatively new exotic programminglanguage called Brainfuck2D provided an opportunity to start another contest which should be quite interesting. So, as usual, i invite both forums to join.
It is not a big thing as the last Christmas-Contest but should be a nice little challenge.
Task
A Text-to-Brainfuck2D-Converter.
Brainfuck2D is a variant of the Brainfuck-programminglanguage, whose 8 commands are implemented as star-lines in 8 directions. Thus, the programs are composed of a 2-dimensional dield filled with crossing lines. More at http://www.freakx.net/bf2d/index_eng.html
Rules
- Programminglanguage is PureBasic 3.93 on Windows or 3.92 on Linux.
- It has to be a console-program with the following parameters:
Direct input as string, output on screen:
txt2bf2d "Hallo Welt"
Direct input as string, output to file:
txt2bf2d -o "Hallo Welt" ausgabe_datei.txt
Input as file, output on screen:
txt2bf2d -i eingabe_datei.txt
Input as file, output to file:
txt2bf2d -i -o eingabe_datei.txt ausgabe_datei.txt
Of course you can put extra stuff in it but the above parameters must exist.
Input: Text in ASCII-Format (see ASCII-Table in the PB-Editor) as string or file.
Output: A Brainfuck2D-Program on the screen or in a file. The BF2D-program, once executed by 2dbfi.exe, must output the input-text on screen.
- Closing date is Sunday, 1. Mai 2005 at 24:00 (12:00 pm). If you need more time, request it in this thread.
- You must send the programs as sourcecode to rob@robsite.de or robert.gerlach@gmail.com. I'll compile and execute them by feeding random text (german and english) to them. Is there a tie, the tied programs will be executed against each other with new texts. If we have a winner, the programs will be published on the Contest-Site.
Evaluation criterion
- Function. The generated program has to be flawlessly executed by 2dbfi.exe (see above site).
- The size of the BF2D-program, measured in rows and columns. In other words: A rectangle will be drawn around the program, the smallest wins.
Price
The winner can choose between two exceedingly desirable games, donored by boardmembers:
The Longest Journey - Great graphic-adventure on 4CDs with manual in a beautiful cardboard box.
Splinter Cell 1 - Ingenious sneak- and tactics-shooter in a lightweight transparent jewel-case

Unfortunately, both games are in german. So either you learn the language, only watch at the graphics or hope, that someone donates something more international

Tip
- Divide the problem in two sub-problems: Text-to-Brainfuck and Brainfuck-tu-Brainfuck2D. Infos for Text2Brainfuck are available on the german PureBoard-Archive (see searchfunction).
Please post all questions, suggestions or error-reports in this thread.
Have fun
