A Python 'capture the flag' Game Oriented Multiagent System.
Project description
pygomas
A python capture the flag Game Oriented Multiagent System.
Free software: GNU General Public License v3
Documentation: https://pygomas.readthedocs.io. (to be done)
Features
BDI agents to play a capture the flag game.
Based on the SPADE Multi-Agent System platform (https://spade-mas.readthedocs.io.)
Support for different game viewers (pygame, Unity, ncurses…)
Usage
To run a pygomas game manager:
$ pygomas manager --num-players 10 --match-time 120
The prepare a JSON file with your agent configuration:
{ "host": "127.0.0.1", "manager": "cmanager", "service": "cservice", "axis": [ { "rank": "BDISoldier", "name": "soldier_axis1", "password": "secret", "amount": 5 } ], "allied": [ { "rank": "BDISoldier", "name": "soldier_allied1", "password": "secret", "amount": 5 } ] }
For more complex configuration files run:
$ pygomas help run
Then run your agents file:
$ pygomas run --game game.json
To view the game play in real time run:
$ pygomas render
To dump the game play to a file to be replayed in the future run:
$ pygomas dump --log my_log_file.log
To replay a game play run:
$ pygomas replay --game my_log_file.log
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.2.0 (2019-07-05)
Added game replay support.
Added action to register generic services.
Added turn action for the troop agents.
Added a new map (map_08)
Minor bug fixes.
0.1.0 (2019-06-13)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pygomas-0.2.0.tar.gz
.
File metadata
- Download URL: pygomas-0.2.0.tar.gz
- Upload date:
- Size: 646.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abac3e26b8eb9e5100cffadebc228c97468adb882ff5b6f9fc1d0a7860d67482 |
|
MD5 | a41caa4276828d601da8b570388a2425 |
|
BLAKE2b-256 | 909b7674d60d61afb21133b78e0da4ec7238e7c932032b601e81691b5e7d28e1 |
File details
Details for the file pygomas-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pygomas-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 489.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd34b277af77fc5c7eb701b085d01a883420108fbb73fce2b6019f838aba5eb7 |
|
MD5 | 48521cc07ab3cf4c9b0209a1fdb8fa91 |
|
BLAKE2b-256 | 33dca1d1f3e23981abf389fba919d7925b66781979d2f993aa7ebc32a5194f01 |