Observed since 21 Oct, 09:31 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
AGT Lab Server for Game Theory Competitions - A tournament server for game theory lab competitions
A comprehensive tournament server for game theory lab competitions, supporting multiple game types including Rock Paper Scissors, Battle of the Sexes, Chicken, Prisoner's Dilemma, Lemonade Stand, Auctions, and more.
git clone https://github.com/yourusername/agt-server.git
cd agt-server
pip install -e .
pip install agt-server
Start the server:
agt-server --game rps --port 8080
Start the dashboard:
agt-dashboard --port 8081 --server-port 8080
Start both together:
python -m agt_server.cli both --game rps
import asyncio
from agt_server import AGTServer
# Create and configure server
config = {
"game_type": "rps",
"num_rounds": 100,
"num_players": 2
}
server = AGTServer(config, host="0.0.0.0", port=8080)
# Run the server
asyncio.run(server.run())
Once running, access the dashboard at:
The server accepts various configuration options:
config = {
"game_type": "rps", # Game to run
"num_rounds": 100, # Rounds per game
"num_players": 2, # Players per game
"allowed_games": ["rps"], # Restrict to specific games
"verbose": False # Enable debug output
}
agt-server [OPTIONS]
Options:
--host TEXT Host to bind to [default: 0.0.0.0]
--port INTEGER Port to bind to [default: 8080]
--game TEXT Game type [default: rps]
--num-rounds INTEGER Number of rounds [default: 100]
--num-players INTEGER Number of players [default: 2]
--verbose Enable verbose logging
--config PATH Custom configuration file
--help Show this message and exit
agt-dashboard [OPTIONS]
Options:
--port INTEGER Dashboard port [default: 8081]
--server-port INTEGER Server port [default: 8080]
--host TEXT Dashboard host [default: localhost]
--server-host TEXT Server host [default: localhost]
--help Show this message and exit
Create a JSON configuration file:
{
"game_type": "lemonade",
"num_rounds": 200,
"num_players": 4,
"verbose": true,
"allowed_games": ["lemonade", "auction"]
}
Use it with:
agt-server --config my_config.json
agt_server/
├── core/ # Game engine and core logic
├── server/ # Tournament server
├── dashboard/ # Web dashboard
├── cli.py # Command line interface
├── __init__.py # Package initialization
└── requirements.txt
# Install development dependencies
pip install -e .[dev]
# Run tests
pytest tests/
# Build source distribution
python setup.py sdist
# Build wheel
python setup.py bdist_wheel
# Install build tools
pip install build
python -m build
This project is licensed under the MIT License - see the LICENSE file for details.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.7 | 7 Nov 2025 | 13 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 21 Oct, 09:31 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:41d6610af3e2295b1c2a3a404b58480cdc84061d5635be25161651efcd1465f1