This is the Battlecode 2025 Python scaffold. Read https://play.battlecode.org/bc25python/quick_start !
README.mdThis file.run.pyThe python script used to run players and upgrade versions.src/Player source code.test/Player test code.client/Contains the client. The proper executable can be found in this folder (don't move this!)matches/The output folder for match files.maps/The default folder for custom maps.
Your submission must go in the src/ folder, under the mysubmission/ folder specifically.
When we run your bot in the game, we will be assuming that your bot is located in src/mysubmission/.
Any player you write must have a bot.py file. Check out the starter bot in src/mysubmission/bot.py to understand more.
With that said, you are free to do any modifications you'd like within the codebase, such as:
- Creating additional bots under
src/to test different strategies - Write tests to validate your bot's behavior
- Write notes to document your thought process and decisions.
Keep in mind, you're going to be playing this game across multiple rounds, so make sure to keep your code organized and well-documented. It'll also be a very good idea to note down your progress, such that you can pick up where you left off more quickly in future rounds.
python run.py runRuns a game with default settings. Use--p1,--p2to use different players, and--mapsto use different maps.python run.py updateUpdate configurations for the latest version -- run this oftenpython run.py zip_submissionCreate a submittable zip filepython run.py verifyVerify that your player--p1submission is valid and will be acceptedpython run.py tasksSee what else you can do!
Look at properties.json for project-wide configuration.
If you are having any problems with the default client, please report to teh devs and
feel free to set the compatibility_client configuration to true to download a different version of the client. You will also need to delete the client_version.txt file and run the update task to force a reinstall.