Built 2023 to 2025
Mafia
Online multiplayer party game
- Realtime multiplayer
- Realtime multiplayer
- No frontend framework
- No frontend framework
- ~250 commits
- ~250commits
Play the party game Mafia online with friends, with an automated game-master bot running the day and night rounds.
Features
- Accounts, game lobbies with chat, email invites, role assignment, anonymous voting, profiles and player stats.
- An automated game-master bot that runs each phase of the game.
How it's built
- Flask backend with SQLAlchemy, Alembic migrations, Flask-Login sessions, CSRF-protected forms and bcrypt password hashing.
- Realtime play over Socket.IO.
- Frontend in hand-written HTML, CSS and JavaScript with a service worker, sound and music.
- Packaged with Docker and gunicorn, tested with pytest.