In order to solve this task, you will need to have Python 3.6 or newer installed.

1. Extract the contents of this archive into a new folder

# If you want to write your bot in Python:

2. Check out the sample bot in sample_bot.py

3. Run the following command to test the bot

python3 grader.py --exec "python3 sample_bot.py" --config game.json --mice mice.json --contexts contexts.json

4. Run the following command when you're ready to submit your solution to subtask 1 or subtask 2

python3 grader.py --exec "python3 sample_bot" --input <path/to/downloaded/input> --output <output/path>

5. Upload the output file to the grader

# If you want to write your bot in C++:

2. Check out the sample bot in sample_bot.cpp

3. Run the following commands to test the bot

g++ sample_bot.cpp -o sample_bot
python3 grader.py --exec "./sample_bot" --config game.json --mice mice.json --contexts contexts.json

4. Run the following command when you're ready to submit your solution to subtask 1 or subtask 2

python3 grader.py --exec "./sample_bot" --input <path/to/downloaded/input> --output <output/path>

5. Upload the output file to the grader


If you want to test your submission for the creativity tourney, you will have to run a game with two mice. To do so, configure two mice in the game config. For an example look at `game_multi.json`. Then you can run it as follows:

python3 grader.py --exec "python3 sample_bot.py" "python3 sample_bot.py" --config game_multi.json --mice mice.json --contexts contexts.json

Replace the two instances of `python3 sample_bot.py` by the bots you'd like to test.

Updated 2020-11-15