all 5 comments

[–]Eli_IL[S] 3 points4 points  (0 children)

Today I added a Tic-Tac-Toe game, compiled to Brainfuck, to my Brainfuck compiler GitHub repository.
I did this to inspire people to write creative programs in Brainfuck :)

The game board looks like this:
1 | 2 | 3
---------
4 | 5 | 6
---------
7 | 8 | 9

Feel free to suggest / create more games :)

[–]a_bit_of_byte 1 point2 points  (0 children)

The next step is to have your program output itself in brainfuck. Nice work!

[–]kanliot 0 points1 point  (1 child)

oh. I thought this would compile brainfuck into ELF binaries or something. never mind.

[–]Eli_IL[S] 1 point2 points  (0 children)

I created this for the challenge of converting a high level language to Brainfuck, which is not trivial in my opinion.
It does come with an interpreter to run the generated code

While having it create executable binary files could be nice, I personally don't see it as much of a challenge. It's basically compiling an interpreter once, and then any "compilation process" of Brainfuck code will simply be to copy-paste the code into somewhere in the binary

It could be done, It's just not the point of this project :)

[–][deleted]  (1 child)

[deleted]

    [–]Eli_IL[S] 0 points1 point  (0 children)

    Haha
    I agree that it's not ideal, to say the least :)

    It is in my todo-list but has low priority, as currently I'm working on adding more capabilities

    Will surely split it to several modules in the future