In development: ROBOMOD
- vonflare
-
vonflare doot
- vonflare
- doot
- doot
- Posts: 3093
- Joined: January 1, 2014
- Location: Blue Gatorade Factory
In development: ROBOMOD
Have you ever wanted to play a nice little game of mafia, but you only have 4 friends? With 5 people, thats 4 players and a mod. But what good setup uses only 4 players? 5 is where its at. If only there was a way to play so that there is no mod, and yet all night actions and win conditions are handled fairly. Well, now there is!
Sales pitch aside, I'm coding a computer program that will act as 'the mod' for a meatworld game with the setup Lyncher Mafia, with the additional variable of 50% chance that the lyncher is a jester (dosen't end the game) (I'm planning on adding more setups eventually)
Basically, the program will call in the players individually and tell them their roles. Then, during the day, it will wait patiently as the players come to a decision as to who to lynch. It will flip them, then call in the players one at a time to submit their night actions. If they dont have a night action, they will just type their own name. It will detect when a player has fulfuilled their win condition too!
I'm coding it in Eclipse, and a prototype should be ready within a few weeks.
Just wanted to share. Thoughts?THIS POST IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.- SleepyKrew
-
SleepyKrew he/himSnark Attack
- SleepyKrew
- vonflare
-
vonflare doot
- vonflare
- doot
- doot
- Posts: 3093
- Joined: January 1, 2014
- Location: Blue Gatorade Factory
Yeah, I saw that (I read every mini in trying to decide which setup to create) but I thought lyncher/jester would be more fun.
And I'm trying to decide whether to do that one or dethy next.THIS POST IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.- SleepyKrew
-
SleepyKrew he/himSnark Attack
- SleepyKrew
he/him- Snark Attack
- Snark Attack
- Posts: 15746
- Joined: April 27, 2011
- Pronoun: he/him
- Location: quack
- vonflare
-
vonflare doot
- vonflare
- doot
- doot
- Posts: 3093
- Joined: January 1, 2014
- Location: Blue Gatorade Factory
- Magua
-
Magua Jack of All Trades
- Magua
- Jack of All Trades
- Jack of All Trades
- Posts: 6109
- Joined: January 18, 2009
If the setup is well known and understood amongst those playing, and does not have any N0 actions, typically the pattern is:
- Pick player somehow (random, whatever)
- Pass out cards
- Everyone goes to sleep
- Picked player tells mafia to wake up and identify eachother
- Picked player tells mafia to go to sleep
- Picked player tells everyone to wake up
- Day proceeds as normal
- Whoever is lynched becomes the mod- N
-
N Jack of All Trades
- N
- Jack of All Trades
- Jack of All Trades
- Posts: 8539
- Joined: August 2, 2012
In post 5, Magua wrote:If the setup is well known and understood amongst those playing, and does not have any N0 actions, typically the pattern is:
- Pick player somehow (random, whatever)
- Pass out cards
- Everyone goes to sleep
- Picked player tells mafia to wake up and identify eachother
- Picked player tells mafia to go to sleep
- Picked player tells everyone to wake up
- Day proceeds as normal
- Whoever is lynched becomes the mod
never lynch cheery dog day 1- ZZZX
-
ZZZX Survivor
- ZZZX
- Survivor
- Survivor
- Posts: 10778
- Joined: July 7, 2013
I had an idea in mind for a mafia bot that can legitly play mafia. But uaing vb.net
I guess I cab assist you somewhat if you qre doing some kind of auto mafia mod?Implosion: I see ZZZX wasredacted. For shame, people. For shame.
The Bulge: ZZZX is ZZZX
Get to know a ZZZX: http://forum.mafiascum.net/viewtopic.php?f=61&t=58733- BBmolla
-
BBmolla Open Book
- BBmolla
- Open Book
- Open Book
- Posts: 24301
- Joined: May 29, 2011
Uh
play Vengeful
Is normally what I do with five players
http://wiki.mafiascum.net/index.php?tit ... eful_MafiaCome see me in the Great American Melodrama in Oceano- BBmolla
-
BBmolla Open Book
- BBmolla
- Open Book
- Open Book
- Posts: 24301
- Joined: May 29, 2011
In post 5, Magua wrote:If the setup is well known and understood amongst those playing, and does not have any N0 actions, typically the pattern is:
- Pick player somehow (random, whatever)
- Pass out cards
- Everyone goes to sleep
- Picked player tells mafia to wake up and identify eachother
- Picked player tells mafia to go to sleep
- Picked player tells everyone to wake up
- Day proceeds as normal
- Whoever is lynched becomes the mod
But yeah this is normally how face to face works
A robot that automatically inputs actions and automatically resolves everything would be sweet though, would actually allow for role madness
Like, a bot who you text your night actions and it runs everything would be amazing.Come see me in the Great American Melodrama in Oceano- vonflare
-
vonflare doot
- vonflare
- doot
- doot
- Posts: 3093
- Joined: January 1, 2014
- Location: Blue Gatorade Factory
Yeah, that was the idea. But for dethy especially, you need a mod. I don't see any way around it. That was the original inspiration (dethy) but I decided to test the concept with an easier setup first.
The way I distribute the roles seems inefficient to me. Because you can't have repeats, you can't just assign each player a random role.
Here's my code for the role assignments:
Spoiler:
Anyone have any suggestions on how to make it more efficient? Some sort of reverse bubble sort? I mean, the above works, it just has to do a lot of Random.nextInt.
(And before you suggest arrays, Im planning on making the players into arrays instead of individual variables eventually. This is just a proof of concept)
PS: in the code, villan = mafioso, executioner = lyncher, target = unaware lyncheeTHIS POST IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.- Aeronaut
-
Aeronaut He/HimJack of All Trades
- Aeronaut
He/Him- Jack of All Trades
- Jack of All Trades
- Posts: 7236
- Joined: September 8, 2013
- Pronoun: He/Him
- Location: Boston, MA
- Kublai Khan
-
Kublai Khan Khan Man
- Kublai Khan
- Khan Man
- Khan Man
- Posts: 5278
- Joined: August 5, 2008
- Location: Sarasota, FL
I ran some 3p micros.
http://forum.mafiascum.net/viewtopic.ph ... 8#p4944608
http://forum.mafiascum.net/viewtopic.ph ... 2#p4904182Occasionally intellectually honest
Black Lives Matter
Get vaccinated- vonflare
-
vonflare doot
- vonflare
- doot
- doot
- Posts: 3093
- Joined: January 1, 2014
- Location: Blue Gatorade Factory
Yeah, I've played the supersaint setup in RL, but it dosent really require a mod because there isn't any night actions. Ace of spades = mafia, jack of diamonds = vengeful, 2 of hearts = townie
The cop setup is interesting, though.
In post 11, Aeronaut wrote:This is how the matrix starts
I loledTHIS POST IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.- Kublai Khan
-
Kublai Khan Khan Man
- Kublai Khan
- Khan Man
- Khan Man
- Posts: 5278
- Joined: August 5, 2008
- Location: Sarasota, FL
In post 13, vonflare wrote:
Yeah, I've played the supersaint setup in RL, but it dosent really require a mod because there isn't any night actions. Ace of spades = mafia, jack of diamonds = vengeful, 2 of hearts = townie
The cop setup is interesting, though.
Eh. I think it might be less interesting actually. Once the initial "I'm a cop!" "COUNTER-CLAIM!" gimmick is over, it's just 2 townies v 1 mafia. Super-saint setup gives mafia more of a challenge to manipulate the townies to not just mislynch, but to do it in the right order.
Conversely, in the super-saint setup, the saint player usually makes themselves pretty obvious (often unintentionally) so it breaks down to 1 v 1.
Either way, ultimately more players are needed to make mafia more interesting.Occasionally intellectually honest
Black Lives Matter
Get vaccinated- Kublai Khan
-
Kublai Khan Khan Man
- Kublai Khan
- Khan Man
- Khan Man
- Posts: 5278
- Joined: August 5, 2008
- Location: Sarasota, FL
- vonflare
-
vonflare doot
- vonflare
- doot
- doot
- Posts: 3093
- Joined: January 1, 2014
- Location: Blue Gatorade Factory
- Magua
-
Magua Jack of All Trades
- Magua
- Jack of All Trades
- Jack of All Trades
- Posts: 6109
- Joined: January 18, 2009
Use arrays. also use the java equivalent of shuffle on an array/list of roles and you eliminate 80% of the code.- Kublai Khan
-
Kublai Khan Khan Man
- Kublai Khan
- Khan Man
- Khan Man
- Posts: 5278
- Joined: August 5, 2008
- Location: Sarasota, FL
In post 16, vonflare wrote:XYLBOT?
It's an IRC Bot that moderates IRC mafia games. In depth article -> XylBotOccasionally intellectually honest
Black Lives Matter
Get vaccinated- vonflare
-
vonflare doot
- vonflare
- doot
- doot
- Posts: 3093
- Joined: January 1, 2014
- Location: Blue Gatorade Factory
See, that's where I'm stuck. I'm not sure how to use 'shuffle'. I looked it up and the answers were not helpful.
Pedit: @maguaTHIS POST IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.- Kublai Khan
-
Kublai Khan Khan Man
- Kublai Khan
- Khan Man
- Khan Man
- Posts: 5278
- Joined: August 5, 2008
- Location: Sarasota, FL
Damn, it would be great if Xyl was still here. His bot basically gave weighted figures to each role based on how many times it ended up on the winning side, then balanced future setups with those weighted numbers.
So a townie might be 0.45 and a cop would be 1.55 so cops would appears much less often than townies.Occasionally intellectually honest
Black Lives Matter
Get vaccinated- vonflare
-
vonflare doot
- vonflare
- doot
- doot
- Posts: 3093
- Joined: January 1, 2014
- Location: Blue Gatorade Factory
- Kublai Khan
-
Kublai Khan Khan Man
- Kublai Khan
- Khan Man
- Khan Man
- Posts: 5278
- Joined: August 5, 2008
- Location: Sarasota, FL
Go to http://webchat.globalgamers.net/ and put #mafia as the channel you want to join.Occasionally intellectually honest
Black Lives Matter
Get vaccinated- Magua
-
Magua Jack of All Trades
- Magua
- Jack of All Trades
- Jack of All Trades
- Posts: 6109
- Joined: January 18, 2009
In post 19, vonflare wrote:See, that's where I'm stuck. I'm not sure how to use 'shuffle'. I looked it up and the answers were not helpful.
Pedit: @magua
Java's not my thing, but something like this:
Code: Select all
List<String> roles = Arrays.asList("VT", "VT", "Lynchee", "Mafia", "Lyncher"); Collections.shuffle(roles);
roles.get(0) will be the role of the first player, roles.get(1) will be the role of the second player, etc.
If you want the Mafia to be a possible Lynchee, get a random number 0-4 afterwards, rerolling while "Lyncher".equals(roles.get(yournumber))- ZZZX
-
ZZZX Survivor
- ZZZX
- Survivor
- Survivor
- Posts: 10778
- Joined: July 7, 2013
I can give you how the basic code will look but its.. quite differant from java. (I hate java never got used to it) is that fine with you?Implosion: I see ZZZX wasredacted. For shame, people. For shame.
The Bulge: ZZZX is ZZZX
Get to know a ZZZX: http://forum.mafiascum.net/viewtopic.php?f=61&t=58733 - ZZZX
Copyright © MafiaScum. All rights reserved.
- Magua
- Kublai Khan
- vonflare
- Kublai Khan
- vonflare
- Kublai Khan
- Magua
- vonflare
- Kublai Khan
- Kublai Khan
- vonflare
- Kublai Khan
- Aeronaut
- vonflare
- BBmolla
- BBmolla
- ZZZX
- N
- Magua
- vonflare
- SleepyKrew
- vonflare
- vonflare