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.3.6 (2020-02-28)
Added new maps.
0.3.5 (2020-02-25)
Increased agents velocity.
Fixed render messaging initialization.
Fixed look ZeroDivisionError bug.
Improved pygomas render with tiles.
Improved pygomas render supporting invisible bases.
0.3.4 (2020-02-24)
Added add_custom_actions support.
Improved create_control_points custom action.
Updated spade_bdi requirement to 0.2.0.
Fixed maps path in render.
0.3.3 (2020-02-24)
Minor bug fix.
Upgraded reference to github repository.
0.3.2 (2020-02-19)
Added friendly fire.
Added a probability to miss a shot.
Fixed agent stop when there are pending messages to be sent.
Fixed max length bug in text render.
Moved ontology constants to a new file.
0.3.1 (2020-02-17)
Fixed adding new actions in inherited classes.
Improved logger.
Added verbosity parameter.
Improved jps and a* algorithms by avoiding being near walls.
0.3.0 (2020-02-10)
Migrated msg format to msgpack.
Black sttyle applied to code.
Major refactoring of code in renders.
0.2.3 (2019-07-10)
Upgrade default ASLs.
Agent name in JSON file is no longer required.
0.2.2 (2019-07-10)
Change all coordinate actions and beliefs to tuple of coordinates.
Update spade-bdi.
0.2.1 (2019-07-08)
Change the .create_control_points from action to function.
Change all coordinate actions and beliefs to tuple of coordinates.
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.3.6.tar.gz
.
File metadata
- Download URL: pygomas-0.3.6.tar.gz
- Upload date:
- Size: 3.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69cd547403c526ca839009d6f44e3fc9cb5805eab3971645e62ada6eb47ca635 |
|
MD5 | f77793221b53df4981d3edf07d4a6fd2 |
|
BLAKE2b-256 | 998d5acf770efa7c5a7530ce58193c0156af0f0ab1d1cbe18a94d771b2717122 |
File details
Details for the file pygomas-0.3.6-py2.py3-none-any.whl
.
File metadata
- Download URL: pygomas-0.3.6-py2.py3-none-any.whl
- Upload date:
- Size: 3.1 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdba249ba75907d80855e91d9ab35619439abe1e65f1d9837ccf995a54d08d6a |
|
MD5 | e426eeae0b5ea5902c1cebbda0ca94f5 |
|
BLAKE2b-256 | b5655030d127d4ff19f2b7a12691f1a8e33bd3043fe8961f6f0370fb827e133f |