Skip to main content

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


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)

Uploaded Source

Built Distribution

open_mafia_engine-0.4.0b3-py3-none-any.whl (32.4 kB view hashes)

Uploaded Python 3

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