Reactor - A Python TUI app to run bots locally for Defector!
Reactor is a simple, easy to use app to test your Defector bots! It helps to find bugs, download the source of other bots, and have your bot compete against the top bots on the leaderboard all without ever publishing your bot to the site!
Make sure you have python 3 installed, then just run py -m pip install reactor_mindstormpro3 in your terminal!
After installing, make sure you restart your terminal.
Run reactor, let it load for up to 15 seconds, and then the TUI (text-based user interface) should appear.
There are 3 main buttons in the app.
- The
Run Reactorbutton, - The
Select Botbutton, - And the
Refresh BotsButton.
The Run Reactor button... well... runs the reactor! It takes all bots currently loaded, pairs them up against eachother and runs them, and then graphs the results in a table.
The Select Bot button allows you to select a bot in the current working directory or any subdirectories and load it, so it can be ran against the other loaded bots. NOTE THAT IT ONLY SHOWS FILES THAT END IN .js OR HAVE NO FILE EXTENSION, SO NO .txt FILES.
The The Refresh Bots button fetches the latest bots from the leaderboard and loads them, so they can be ran. (you don't need to load your own local bot to run, you just need to refresh the bots so there is something to run in the first place)Refresh Bots button broke since defector ended and they removed the API endpoint I was using, so I'm including the current top 20 bot's source code in the Included Bots folder, Please download them to test reactor, just make sure they are in the same folder or a subfolder of the current working directory where you are running reactor from.
DISCLAIMER: I did not write these bots, other people did for the hack club defector program. Do not credit me for these bots, Other, smarter people made them, not me.