Open Mafia Engine - a framework for mafia/werewolf games.
Project description
Open Mafia Engine
The Open Mafia Engine is a flexible, open-source game engine
Features
- Event-based architecture, which allows for very complex interactions.
- Many built-in abilities, victory conditions, etc.
- YAML
Prefab
s let you define a game in a (mostly) human-readable fashion. - Open source & extensible, with a plugin system in the works.
Installing
It should be pretty easy to install:
pip install open_mafia_engine
Getting started
This example starts a 5-player "vanilla" mafia game (1 mafioso vs 4 townies):
from open_mafia_engine.api import Prefab
prefab = Prefab.load("Vanilla Mafia")
players = ['Alice', 'Bob', 'Charlie', 'Dave', 'Eddie']
game = prefab.create_game(players)
Actually running commands in the engine is pretty complicated for now. We're working to improve that experience.
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
open-mafia-engine-0.4.0b3.tar.gz
(26.6 kB
view hashes)
Built Distribution
Close
Hashes for open-mafia-engine-0.4.0b3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72da219c2ca0f68d0702fd24d4b2f39d9b6b201b789fb812c65d41b05c61731a |
|
MD5 | 1cbcbcf91b1ff80678727140ad4b8a81 |
|
BLAKE2b-256 | ab9292763076e4c5de26bf14fce2fec5710979050ed327aacd756272f5d4d8e9 |
Close
Hashes for open_mafia_engine-0.4.0b3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c45feae6d46681eeb2933275af7d91b14232f9c50aa63d4fd021a652a35f236 |
|
MD5 | e5c53d87ff1c8c28c1162adb2b3e99f0 |
|
BLAKE2b-256 | 063bce181283515350e2ef522c28ec62ff0c05ac6df596a0f038a6f888216cba |