Skip to content

A different approach for Text To Brainf**k compared to my original implementation with BFI.

Notifications You must be signed in to change notification settings

itsamedood/ttb-diff-approach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TTB (Text To Brainf**k)

What?

Different approach instead using fancy-pants math to convert text to Brainf**k as done in BFI:

The format produced is near identical to what I used in Brainless Bot.

Only real difference is:

Brainless Bot
>>++++[<++++++++>-]<..               Space (x2) = 32
== VS ==
TTBDA
>>++++[<++++++++>-]<..                    Space = 32

It can also produce a compact format (--compact=<int>) if you don't want the comments.

>+++++[<+++++++>-]<.>>++++[<++++++++>-]<.>>+++++[<
+++++++++++++++++>-]<-..>>++++++[<+++++++++++>-]<.
>>++++[<++++++++>-]<.>>++++[<++++++++++>-]<.>>++++
+[<+++++++++++++++++>-]<-.>>++++++++++[<++++++++++
>-]<+.>>++++++++++[<++++++++++++>-]<.>>++++++++++[
<+++++++++++>-]<++++++.>>++++[<++++++++>-]<.

You can have all the code one 1 line if you want by specifying compact as 0.

Check test/gitignore.bf for an example.


Why?

bored 🤷‍♂️

About

A different approach for Text To Brainf**k compared to my original implementation with BFI.

Topics

Resources

Stars

Watchers

Forks