Programming Agents Competition organized as part of the 2024 edition of the JDIS Games at the University of Sherbrooke.
To modify the domain, follow these steps:
-
Open your command line interface.
-
Change the Docker Compose URL:
base_url="<NEW URL>" sed -i.bak -e "s|API_URL=.*/rank|API_URL=${base_url}/rank|g" \ -e "s|API_URL=.*/unrank|API_URL=${base_url}/unrank|g" \ -e "s|DOMAIN=.*|DOMAIN=${base_url}|g" \ "docker-compose.yml"
-
Copy the example
.env
file:cp .env.example .env
-
Modify the administrative information in the
.env
file as needed.
To start the services, run:
docker compose up --build
Then navigate to:
https://<YOUR URL>/rank
https://<YOUR URL>/unrank
To create an agent, follow these steps:
- Go to the game page at https:///unrank.
- Click on the menu icon in the top right corner.
- Enter the name of your agent.
- Copy the token from the message at the bottom right.
- Use this token in your starter pack.
Administrators can perform the following actions:
Action | Path |
---|---|
Start a game | https://<URL>/<rank,unrank>/start?tkn=<ADMIN_TOKEN> |
Toggle leaderboard visibility | https://<URL>/<rank,unrank>/toggle_leaderboard?tkn=<ADMIN_TOKEN> |
Freeze a game | https://<URL>/<rank,unrank>/freeze?tkn=<ADMIN_TOKEN> |
Unfreeze a game | https://<URL>/<rank,unrank>/unfreeze?tkn=<ADMIN_TOKEN> |