Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tangilj/rlbotbrainfuckexample
An example Rocket League bot written in brainfuck.
https://github.com/tangilj/rlbotbrainfuckexample
Last synced: 17 days ago
JSON representation
An example Rocket League bot written in brainfuck.
- Host: GitHub
- URL: https://github.com/tangilj/rlbotbrainfuckexample
- Owner: TangilJ
- Created: 2019-01-13T15:37:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-26T23:11:03.000Z (almost 5 years ago)
- Last Synced: 2024-05-13T16:27:32.036Z (8 months ago)
- Language: C
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RLBotBrainfuckExample
An example Rocket League bot written in brainfuck.## Changing the bot
- Bot behavior is controlled by `src/brainfuck/bot.bf`
- The inputs that the bot gets is controlled by the Python code in the `inputs` option in `src/agent.cfg`## Brainfuck implementation details
This bot uses a relatively standard implementation of brainfuck. Here are the details:
- There is a 30,000 cell tape, where each cell is initialised to zero
- Each cell has a value range of an 8-bit `char` (-128 to 127)
- Cell overflow/underflow wraps the cell to the opposite end of the cell range
- Moving the pointer to the left (`<`) of cell 0 limits the pointer to cell 0
- Moving the pointer to the right (`>`) of cell 29,999 limits the pointer to cell 29,999
- The `#` symbol can be used for debug printing## Troubleshooting
### Printing debug values
You can place the pound/hash symbol (`#`) in your brainfuck code to print the current cell, its value, and the value for the following for 19 cells.### %1 is not a valid Win32 application
If you get this error, `src/python/interpreter.dll` hasn't been compiled with the same architecture as your Python environment. To fix this, compile the interpreter project (project provided in `CMakeLists.txt`) with the right architecture.