Skip to main content

A Python 'capture the flag' Game Oriented Multiagent System.

Project description

pygomas

https://img.shields.io/pypi/v/pygomas.svg https://img.shields.io/travis/sfp932705/pygomas.svg Documentation Status

A python capture the flag Game Oriented Multiagent System.

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.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygomas-0.3.0.tar.gz (653.7 kB view details)

Uploaded Source

Built Distribution

pygomas-0.3.0-py2.py3-none-any.whl (494.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pygomas-0.3.0.tar.gz.

File metadata

  • Download URL: pygomas-0.3.0.tar.gz
  • Upload date:
  • Size: 653.7 kB
  • 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

Hashes for pygomas-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2f8c7d452f54475527cd8e85fb059945e65db186cbce79e5f875c7678fc9333c
MD5 ae448fcf7be99120ea410976531b1c70
BLAKE2b-256 478633b84539a916d4f1446fd95ae5593a5bf87627fbe902bd669d8be68b1dfe

See more details on using hashes here.

File details

Details for the file pygomas-0.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pygomas-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 494.6 kB
  • 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

Hashes for pygomas-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a73bed9c6ef83a67a45a42022f15901f0032521e111467f4d0aae9063ac3f8c3
MD5 1bee6ac7cf1154f0dfc52e3cbaf569d8
BLAKE2b-256 061b5b9c2327db3582b95a9016da93afcf93c887098b0db8d011222e9ffcdd1e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page