Purpose

We aimed to create an immersive and streamlined gaming experience for the beloved card game Mafia! As the world continues to become more technologically advanced, we find it important to implement classic games onto virtual platforms for all to enjoy. Through our game’s inherently collaborative nature, we hope to promote team bonding and encourage everyone to have fun with others.

Technical Implementation

Our Discord bot is coded with Python, specifically discord.py. We approached this project by splitting the game into multiple classes: one main class where the game is run, one utility class that contains important functions relating to polls, and four classes relating to specific roles within the game. The five latter classes feed into the first one, creating an efficient and organized software environment.

Challenges

As this was our first time implementing a program using the discord.py API, we had some issues with getting some of the components to work on the first try. Also, since this was our first time making a game, the implementation process took longer than expected. We learnt a lot from this experience by exploring the discord.py API and figuring out how to make it work.

Looking to the future

For the future, we could try expanding the game to include more players. Also, we can add more complex roles such as a mole, a role blocker, etc. We could also clean up the code and improve the functionality in the future by, for example, adding more possible responses to the discord bot, making the user experience more enjoyable.

Built With

Share this project:

Updates