This is a game about the popular board game "Mafia." No rules are needed; everything becomes clear as you play. But in short: The game has 4 innocents, 2 mafia members, 1 policeman, and 1 doctor. The innocent member doesn't do anything... he just votes. The mafia members are the main antagonists (the only ones). They collectively choose who to expel. The policeman is an armed good man. He chooses who to jail. The doctor (not Dr. Aibolit) is a person with a higher education who chooses who to cure. If his choice matches the mafia's, their victim is saved. Round 1 is the deal. Everyone is dealt random cards. Round 2 is night. The mafia members act first, choosing who to expel. Then it's the doctor's turn, choosing who to cure. The policeman acts last, choosing who to jail. Round 3 is the final round. Everyone is informed of who has been imprisoned and who has been expelled. If a player is eliminated in this round, the game ends. Round 4 is the vote. All living participants vote for whoever they think is best. If someone has a tied number of votes, they draw lots. If a player is eliminated in this round, the game ends. Then Rounds 2, 3, and 4 are repeated until: 1. The number of Mafiosi ≥ the number of Good players. The Mafia wins. 2. There are no Mafia players left. The Good players win. Somehow, this turned out a bit too long...
The code is entirely mine © The game took two weeks to develop, and is based on a random number generator that controls the bots. Modifications are very difficult to create, and the code is very complex... This is a beta version, so there may be some bugs. If you spot any, please let me know!