Example of a python bot using the RLBot framework, and customized for use in a classroom setting.
These instructions assume that you're attending some kind of session where somebody is explaining RLBot and hosting the game on one main computer.
- Make sure you have python 3.6 or higher installed.
- Download this specific branch of the repository: https://github.com/RLBot/RLBotPythonExample/zipball/puppy. Make sure you unzip if necessary.
- Look in the src/bot.cfg file and change the name "AnonymousBot" to something you can recognize, so you'll know which car on the screen is yours.
- Run the program. This should cause a car to appear in the game on the host computer!
- Windows: Double click on run.bat
- Mac / Linux: Open a terminal at this folder location and run
python3 run.py
- Open the src/bot.py file in your favorite code editor and start tinkering. The behavior of the car should change immediately every time you save.
- Read about the data available at https://github.com/RLBot/RLBotPythonExample/wiki/Input-and-Output-Data
- Find useful constants at https://github.com/RLBot/RLBot/wiki/Useful-Game-Values
- Make your car beautiful with
src/appearance.cfg
and https://github.com/RLBot/RLBot/wiki/Bot-Customization