Skip to content

Chris4942/cs-471-generals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run

Requirements

  • conda
  • make
  1. Setup the conda environment
conda env create -n cs-471-generals -f requirements.yaml
conda activate cs-471-generals
  1. 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
  2. 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
  1. Run the project code
make run
  1. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published