Project Info

Super Mafia

Devpost

This project did not submit a demo video on Devpost.

Inspiration

This game is based on the popular social deduction game Mafia or Werewolf, taking the game to a new level. This game solves a key problem with the classic games: The need for a human moderator who has to sit out to narrate.

What it does

Super Mafia uses AI to host the game, allowing everyone to play. Its key features include: Pass-the-phone gameplay and online multiplayer. AI Host with several unique voices, narrating the game with personalities like serious, funny, or even a rhyming rapper. 2 different game modes, classic and judge, which involve voice interaction between the players and the AI host, as they must convince the AI to choose who to vote out. The classic mode uses Baseten and janitor.ai for the personality and ElevenLabs for the voice. Players have to discuss with each other to find out who the werewolf is In the online mode, each player talks to the Baseten AI or janitor.ai. Their goal is to convice the AI to vote out who they think the werewolf is

How we built it

TypeScript is the fundamental logic of the game. TailwindCSS for the styling of the game. LiveKit for the fast and efficient streaming of text-to-speech responses. Janitor AI and Baseten for unique personalities. ElevenLabs API to introduce different voices.

Challenges we ran into

Handling bad user input, as there were many different debugging tests we had to do, especially with player management. Creating a friendly UX, as we had to ensure the privacy of the players and make it clear whose turn it was.

Accomplishments we're proud of

We are very proud of the overall design of the app, as its simple and fun style made the game pretty engaging and accessible. Lessons learned We learned how to use multiple API's together. We also learned how to create an online multiplayer game.

What's next

Fixing bugs with the multiplayer mode. Video showing judge mode (main video only shows classic mode): https://www.youtube.com/watch?v=8hDipFwG1qk

Analysis

Compare with all teams

View

Metric

Figures cover GitHub contributors during the hackathon window. A co-authored commit counts in full for each author, so per-member totals add up to more than the whole-team figures.

Technology

Found in codeClaimed only
  • CSSIn code
  • JavaScriptIn code
  • Next.jsIn code
  • PythonIn code
  • ReactIn code
  • Tailwind CSSIn code
  • TypeScriptIn code

7 of 7 appear in the indexed code.

AI coding agents

No AI coding agent signals were found in this repository.

Detected from committed agent config files and commit authorship. Absence of a signal is not proof an agent was unused.

Codebase size

Source size

241 KB

Source files

32

Counts recognized source files only; vendored directories, binaries and lockfiles are excluded, so this is smaller than the repository on disk.

0 stars