conda
make
- Setup the conda environment
conda env create -n cs-471-generals -f requirements.yaml
conda activate cs-471-generals
-
Create game: Go to the generals bot server and create a custom game.
- click play
- it might force you to play a short tutorial
- create a custom game
-
Create secrets: Create a file called
secrets.sh
and fill it with the following (replacing any<fielsd>
with valid content)
export GAME_ID="<game_id_from_the_url>"
export USER_ID="<whatever you want>"
export USERNAME="Bot<whatever you want>"
Now run
source secrets.sh
- Run the project code
make run
- You should now be able to talk to your computer and the player that is run through the API will react.
There is currently no UI to go with it, but you can give it some commands and it will run them on the battlefield.
You can kill the process with
^C
and then watch the replay to see how the actions interacted with the units on the field.