Lux AI Working Title Bot
Please refer to the Kaggle notebook for the comment section. The comment section contains my explanation on my code structure and logic.
This README will explain how to use this repository.
Setup
Run ./setup.sh
to install the required components.
Make submission files
Run ./make_submit.sh
to generate the following files
- The zipfile
submission.tar.gz
which can be submitted to Kaggle directly. - The notebook submission
notebook_generated.ipynb
. You can upload this notebook into a fork of my notebook and submit.
Running a Game
You can run a game with notebook_test.ipynb
You may define the width and height of the board, as well as the seed. Annotations are shown on the board.
This code snippet is also run in the generated notebook.
Analysing Game State and Missions
You may run the game logic on a specific turn with notebook_debug.ipynb
to understand why the agent made a certain decision.
When the run is made with notebook_test.ipynb
, the game state, and missions are saved as Python pickle files. You may load the Python pickle file and run the game logic to produce the actions and updated missions.
As the game logic is run, it prints the new mission planned, the actions made include the annotation.
You can modify the code and see how the agent reacts different for the same game state and missions. This allows you iteratively improve the agent more quicking.
This code snippet is also run in the generated notebook.