
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
The AGT Server is a python platform designed to run and implement game environments that autonomous agents can connect to and compete in.
The AGT Server is a python platform designed to run and implement game environments that autonomous agents can connect to and compete in. Presently the server only supports
However, at its core the server is also designed to be flexible so that new game environments can be easily created, modified, and adjusted.
Ensure that you have the latest version of pip installed
First clone the respositiory
git clone https://github.com/JohnUUU/agt-server-remastered.git
Please create a virtual environment first
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install agt_server
In the root directory, install the project in an editable state
pip install --upgrade pip
pip install -e .
pip install -r requirements.txt
From here you can start a server in src/server
by running
python server.py [server_config_file] [--ip [ip_address]] [--port [port]]
Then you can run any of the example agents in src/agt_agents/test_agents
by running
Usage:
python [agent_file].py [name] [--join_server] [--ip [ip_address]] [--port [port]]
Or you can write a agent file that implements any of the src/agt_agents/base_agents
and then use
agent.connect(ip, port)
What do each of the options in the server configurations do? Here is a quick description of each of the server configuration options.
game_name
: The name of the game being playedgame_path
: The Python import path for the game modulenum_rounds
: The number of rounds to be played in the gamesignup_time
: The duration (in seconds) allowed for players to sign up before a game starts (60 seconds tends to work best for Lab)response_time
: The maximum time (in seconds) allowed for each player to respond with their movenum_players_per_game
: The number of players required in each gameplayer_types
: The list of available player types in the game. This can be used to specify different permissions for each player and also can be used flexibly to change the rules for different players inside the game_path file.permissions
: This is a dictionary of permissions for each player type restricting the amount of information that each player will recieve at the end of each round. all
means that the player will recieve all information. All other key words correspond to specific information sent each round like my_action
, opp_action
, my_utils
, opp_utils
, etc... server/games
and the corresponding agent under agents/base_agents
type_configurations
: The configuration for player type combinations, if it's all
, then every combination of player types will be played for each game. Otherwise, it can be specified to be a list like [[type1
, type2
], [type1
, type1
]] for example so that player 1 will always be type 1 and play against player 2 as both type 1 and type 2.invalid_move_penalty
: The penalty for submitting an invalid movedisplay_results
: Flag indicating whether to display/print the game resultssave_results
: Flag indicating whether to save the game resultssave_path
: If save_results
is set to true, then this is the path where the game results should be savedsend_results
: Flag indicating whether to send the game results to the agentscheck_dev_id
: Flag indicating whether to check the device ID so that each device can only connect once. This is to stop collusion bots.What purpose do the local arenas serve?
I cant run rps_test.sh or any of the other .sh test files
terminal.app
. If you are using the Mac terminal then make sure to chmod +x
the shell command before running it.I am recieving an error concerning my hostname
ifconfig
(Mac) or ipconfig
(Windows) under en0
or eth0
. Find your hostname using echo $HOST
and then set the host in \etc\hosts
. That usually fixes the problem.--ip
arguement.What if the server hangs for some unexpected reason?
FAQs
The AGT Server is a python platform designed to run and implement game environments that autonomous agents can connect to and compete in.
We found that agt-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.