Skip to content

jacksonal/mafia-slack

Repository files navigation

mafia-slack

Add To Slack

Dev Guide

Install dependencies

pip install -r .\requirements-dev.txt

Run Tests

python -m pytest

Game State Machine

States and actions

  • Marshalling
    • ADD_PLAYER
    • REMOVE_PLAYER
    • START_GAME - Transitions state to Night if enough players have joined.
      • player roles assigned at random.
      • mafia players assigned to a private channel.
  • Night
    • MURDER - The mafia kills a villager and transitions state to day.
      • villager state is DEAD
      • main channel notified of the state
  • Day
    • ACCUSE - A player accuses another of being in the mafia. state transitions to Trial
      • main channel notified of state
  • Trial
    • GUILTY - If majority of players vote guilty, the accused is killed and state transitions to Night.
    • NOT_GUILTY - If majority of players vote not guilty, the accused is acquitted and state transitions back to Day.
    • Channel notifications
  • Game Over

About

slack app for playing the game mafia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages