Text to Brainfuck Translator is a Python-based translator that converts arbitrary text input into optimized Brainfuck code. This project was created to validate my understanding of ASCII encoding and Brainfuck, and to refine my Python programming skills. The goal of this tool is to generate the most compact Brainfuck code possible for any given string.
- Optimized Brainfuck Translation: Converts input text into Brainfuck code with minimal space usage.
- Case Conversion: Supports uppercase and lowercase text conversions.
- Flexible Input: Handles various input formats and provides options for text case manipulation.
- Programming Language: Python
- Libraries Used: Standard library modules (
math
,array
)
To run the project, ensure Python is installed and properly set up in your PATH. Follow these steps:
- Clone the repository:
git clone https://github.com/Ci3l/TextToBrainfuckTranslator.git
- Navigate into the project directory:
cd TextToBrainfuckTranslator
- Run the translator:
python MindBlower.py
You can modify the input text for case conversion by using the following options:
- '!uppercase [your text]' to convert the text to uppercase before translation.
- '!lowercase [your text]' to convert the text to lowercase before translation.
MindBlower(input, uppercase=False, lowercase=False)
- 'input': The text to be converted to Brainfuck code.
- 'uppercase' (optional): Set to True to convert input to uppercase.
- 'lowercase' (optional): Set to True to convert input to lowercase.
You can try out the Mind Blower translator live at JDoodle. Provide your text in Stdin Inputs and see the optimized Brainfuck code generated in real-time.
Brainfuck2Ascii: A basic Brainfuck compiler that translates Brainfuck code into ASCII text.
If you’d like to contribute, please follow these guidelines:
- Fork the repository
- Create a new branch (git checkout -b feature/YourFeature)
- Commit your changes (git commit -am 'Add new feature')
- Push to the branch (git push origin feature/YourFeature)
- Open a pull request
This project is licensed under the EPL 2.0 License - see the LICENSE file for details.