I recently started studying computer science - and about a week ago I had the idea of automating the balancing process for creating a new setup in Mafia. I had several (pretty complicated) ideas for how to do it, but then I found this page: http://hamumu.com/forum/showthread.php?p=263954 It was a very simple, yet effective way of evaluating balance automatically.
Around that time I PM’d Foolishness for advice and suggestions about building this balance tester. He had several valuable suggestions and also helped a ton with the actual balancing.
So how does the balance tester work? The first window asks you to select the amount of players as a starting point (8-24) and generates a somewhat balanced default setup based on that number. It also asks if the game starts at day (default setting) or at night (giving a slight bonus to Mafia and Serial Killers). Then it opens the ”main” window where you can select from 23 different roles and add new roles to the setup, remove roles from the setup, remove all roles from the setup or switch to day/night start. The town vs anti-town balance value (+X for town, -X for anti-town) updates automatically as you make any changes. The text fields for player amount, day/night start and victory odds (%) for each team also update as you make any changes.
The balance and functionality of the program seem OK at this point, but I have no doubt that there’s still room for improvement. That’s why I thought it would be best to gather some feedback and suggestions before making an ”official” release of the program. Once released, it’s supposed to function as a helpful guideline especially for newer hosts (and why not for more experienced hosts as well!). It can’t completely replace an experienced player’s evaluation, but at least in most cases it should work just fine (and of course very fast)! It’s quite unusable for themed setups, though.
Here’s the download link. Any kind of feedback, suggestions and constructive criticism is appreciated.
https://www.dropbox.com/s/zb7oxzsz177h4f7/Mafia_Balance_Tester.jar (EDIT: latest version)
(Currently there’s no way to adjust how much KP the Mafia have at their disposal. You can assume that Mafia KP increases logically - in a linear fashion - as the number of Mafia players increases. So 1-2 Mafia would have 1 KP, 3-4 would have 2 KP or something along those lines. It’s a bit tricky to balance Mafia KP so it should be just assumed that Mafia KP is ”fair” considering the size of the game.)