My Cumulative Project

For our final project this semester in Programming 1, we were tasked with creating a program of whatever we chose. I decided I wanted to make a Trouble in Terrorist Town, which is a Mafia game that goes around any possible copyright that there may be over the name Mafia.

I decided that I wanted to make a mafia like game because I saw that there aren’t very many mafia games to play online, and there aren’t really any that are single player, so I set out to create a single player mafia game.

The simplest thing to make my program work consisted of randomly choosing a terrorist from the 15 citizens, asking the Sheriff, a.k.a. the user, who they think is the terrorist, and telling the user if the citizen was innocent or guilty. This was what I started with before I added more things like the story of each victim’s death, the defense for each suspect, as well a trail and a congratulations.

I would have like to have added some graphics using pygame, python’s add-on to create game graphics, like pictures of each citizen that the user could click on to vote who they believe is the terrorist, as well as a picture showing some calligraphy for the congratulations rather than just normal (boring) text telling the user that they found the murderer.

I think that, realistically, I actually would have had more than enough time to have added a more interesting and fancy congratulations by using turtle, which is a tool used by python that can create pictures from commands or imported photos, but I kept on telling myself “oh, I’ll add that tomorrow” until I didn’t have any more ‘tomorrow’s to add on and put it off for. I think I would have liked the program a little bit more if I had just sat down and created the fancier congratulations.

Overall, I really like the final product of this program. I think that it’s my new favorite program, and I think that’s because I was the most excited to create this program and put in more effort than I did with any other program, which I believe is evident in this final product compared to the other final products of other projects. yes, there are some things that I wish I had included or had the chance to try to include, but I think that it’s still pretty good.

This is a picture of somebody (me) running my program and a little bit of what the formatting looks when it’s all printed out. These are only the instructions, since I don’t want to give anything away for anyone who may want to run my program!

Here, it is giving a short introduction and ‘welcome’ by one of the citizens, Rose, before giving the player the instructions for the game. It has a simple yet detailed run down of how the game will be played, and finishes up by giving a list of the possible suspects:

The code isn’t too difficult, but there was some of it which was confusing to figure out, although I’m glad that I was able to (with the assistance of Mr. Sommerer and a couple of my classmates, of course), because it wouldn’t be the same without the things we learned.

When the game is being run, there is a bit of waiting time, but I tried to include interesting parts so that the waiting isn’t too bad. There aren’t too many input places, but when there are I tried to make it clear so the player knew when to type.

I am pretty proud of this program, and I hope that I was able to show that through this post. Thank you for reading!

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Comments

  • Margie Main on Solar EclipseVery well done! So descriptive that I almost didnt need the pic!