Skip to content

sfp932705/pygomas

This branch is 122 commits behind javipalanca/pygomas:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8cdd7e9 · Jul 10, 2019

History

94 Commits
Jun 13, 2019
Jul 10, 2019
Jun 13, 2019
Jun 20, 2019
Jul 5, 2019
Jul 5, 2019
Jun 13, 2019
Jul 10, 2019
Jul 5, 2019
Jun 27, 2019
Jun 13, 2019
Jul 5, 2019
Jul 10, 2019
Jun 13, 2019
Jul 10, 2019
Jul 10, 2019
Jul 5, 2019

Repository files navigation

pygomas

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.

About

Python GOMAS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.8%
  • Makefile 1.2%