Set your bot username
Now that you are able to run a bot to play in your place, you can start customizing it.
Structure of the scaffolds
Both the Python and Java scaffolds have a main file that contains the logic of the game loop:
- For the Python scaffold, this file is
python/src/main.py. - For the Java scaffold, this file is
java/src/main/java/Main.java.
This is where you will be re-writing logic to control your bot, and where you will be implementing the strategy for your bot.
Note that you may add additional files and create your own structure as you see fit, with the only constraints that:
- The main file (either
main.pyorMain.java) must be present and must keep the same structure (e.g. a main entry point, a definition for the game loop, and a definition for the message handler). - The
conquerhackpackage must not be modified.
Set your bot username
Changing the bot's username can be done by modifying the value of the MY_BOT_USERNAME variable in either main.py or Main.java, depending on the scaffold you are using.
MY_BOT_USERNAME = "MyBotUsername"
MY_BOT_USERNAME = "Team 1 Bot"public static final String MY_BOT_USERNAME = "ConquerHackJavaBot";
public static final String MY_BOT_USERNAME = "Team 1 Bot"; Please note that the bot username must conform to the rules defined in the dedicated rules pages (including being appropriate, not political, not offensive, etc.).
It is now time to start implementing your bot's logic. Take inspiration from the example bot and the following guides, but ultimately, you and your team are the only masterminds behind your bot's strategy.
