Computational Mafia
-
-
Plotinus Kitten Caboodle
- Kitten Caboodle
- Kitten Caboodle
- Posts: 7611
- Joined: March 13, 2015
- Location: UTC+1
I'd be curious to see it once you get it up and runningThe failure mode of clever is asshole.
Modding checklists | Sequencer is in Game 5 | Space II is in Day 4-
-
Psyche he/theySurvivorhe/they
- Survivor
- Survivor
- Posts: 10885
- Joined: April 28, 2011
- Pronoun: he/they
-
-
Psyche he/theySurvivorhe/they
- Survivor
- Survivor
- Posts: 10885
- Joined: April 28, 2011
- Pronoun: he/they
my supp feedback thread in the speakeasy depends in part on the donbot api we developed last year or so; really eases the challenge of reminding myself every project how to automatically interact w/ the site
really hopeful i can leverage the engagement w/ the codebase the thread required into work on interests in this threadYou can't step in the same river twice.-
-
Psyche he/theySurvivorhe/they
- Survivor
- Survivor
- Posts: 10885
- Joined: April 28, 2011
- Pronoun: he/they
i'll start small
i'll review the donbot codebase for any bugs/gaps and fix them, all the way through the votecounter - maybe reorganize the whole project
from there i'll start actually making stuff (automated game moderation?) or asking basic research questions, depending on my whim
but in the end i might have better things to do (i definitely do...)
still, i'd really like to get back into a hobby that counts as a creative outlet
as long as i don't take things too seriously it shouldn't be too hard to stay energizedYou can't step in the same river twice.-
-
Psyche he/theySurvivorhe/they
- Survivor
- Survivor
- Posts: 10885
- Joined: April 28, 2011
- Pronoun: he/they
alright
i'm gonna try to finish to a complete (well, minimum viable product) votecounting bot by the end of the month
given a playerlist and a posting template and a starting post number and assuming no special voting mechanics/roles, it will automatically top every page with an up-to-date votecount and a final votecount plus other optional events when it believes a lynch has been reached
this functionality will be devolved in an API too, enabling people to use the votecounter or pagetopper for other purposes, including research on voting patterns
practically all the relevant code exists, but iirc some debugging is necessary
i don't think anything else about modding a game really needs automation besides perhaps initial handling of role pms
reliably posting votecounts, though? that's incredibly tedious but whether it's done or not has a massive impact on player experience
finishing a bot for that will open me up to modding more games w/o looking like a jackassYou can't step in the same river twice.-
-
Keychain she/herMafia Scumshe/her
- Mafia Scum
- Mafia Scum
- Posts: 1030
- Joined: November 16, 2014
- Pronoun: she/her
- Location: London UK
this isIn post 42, Plotinus wrote:After the next newbie game starts (I'm next in line), I'll know if I've fixed my race condition, if I have then I'll push my change.
setup a game (requires: selenium) : MafiaMod
also requires these files: files
It's all set up for my own defaults so you would need to:- Edit the files in files/public/ to format the OP how you'd like
- Search for the word "hubris" and remove it if you dont want to add my girlfriend to your deadthread. (This step will be easier in the next version, you'll be able to do --spectators = "person1 person2 person3")
- If you're not modding a newbie game, put your role PMs in the files/roles directory and add the roles names to the setups dictionary.
- Also change this to be whatever subforum you'll be putting the game in
Code: Select all
if whichThread == 'public': url = 'https://forum.mafiascum.net/posting.php?mode=post&f=11'
When should I prod somebody next, given that time passes slower on the weekends and they might be v/la: MafiaProd
Give me a list of countdown timers to post in the mod PT of when everybody should be prodded next, if the nightphase doesn't reset countdown timers, time passes more slowly on weekends, and some people are V/LA: NightProd (has a bug that i haven't figured out yet), requires BeautifulSoupawesomeYou're under no obligation to be the same person you were 5 minutes ago.-
-
Psyche he/theySurvivorhe/they
- Survivor
- Survivor
- Posts: 10885
- Joined: April 28, 2011
- Pronoun: he/they
-
-
Flubbernugget Survivor
- Survivor
- Survivor
- Posts: 11751
- Joined: June 26, 2014
-
-
Claus Mafia Scum
- Mafia Scum
- Mafia Scum
- Posts: 1734
- Joined: June 1, 2007
- Location: Tsukuba
Hey Everyone,
The AIWolf Research group will host a competition of Mafia/Werewolf playing bots using Natural Language in October this year.
The idea of this competition is to create AI-mafia bots that can be fun to play with/play against. We held this competition in the past
4 years in Japanese, and this year it is the first time we are holding the competition in English. So we're looking for some people who
could help us judge the submitted bots.
So would anyone be interested in helping us? The task would be to read some 5-player games (and maybe a few 15-player games,
depending on the number of participants), and give your subjective opinion on the different bots (did it play well, did it look human-like,
did it look fun, etc). The setup is relatively simple: Cop, Doctor, Godfather, etc.
No knowledge of AI is necessary. This would take place in the later half of September. Last year we had about 10 submissions.
I hope this picks your interest! Feel free to PM me for details!http://www.youtube.com/watch?v=XVVmAG0RXmo-
-
Psyche he/theySurvivorhe/they
- Survivor
- Survivor
- Posts: 10885
- Joined: April 28, 2011
- Pronoun: he/they
-
-
Claus Mafia Scum
- Mafia Scum
- Mafia Scum
- Posts: 1734
- Joined: June 1, 2007
- Location: Tsukuba
-
-
Plotinus Kitten Caboodle
- Kitten Caboodle
- Kitten Caboodle
- Posts: 7611
- Joined: March 13, 2015
- Location: UTC+1
I updated mafiaMod to account for the new newbie setup a while ago and have laid some groundwork for supporting other setupsThe failure mode of clever is asshole.
Modding checklists | Sequencer is in Game 5 | Space II is in Day 4-
-
Psyche he/theySurvivorhe/they
- Survivor
- Survivor
- Posts: 10885
- Joined: April 28, 2011
- Pronoun: he/they
-
-
Psyche he/theySurvivorhe/they
- Survivor
- Survivor
- Posts: 10885
- Joined: April 28, 2011
- Pronoun: he/they
-
-
Plotinus Kitten Caboodle
- Kitten Caboodle
- Kitten Caboodle
- Posts: 7611
- Joined: March 13, 2015
- Location: UTC+1
I fixed some bugs in mafiaMod and now it is currently bug free and can set up a game entirely in 7 minutes: all opening posts in the public thread, mafia PT, dead PT, and mod PT, all role PMs sent.In post 61, Plotinus wrote:I updated mafiaMod to account for the new newbie setup a while ago and have laid some groundwork for supporting other setupsThe failure mode of clever is asshole.
Modding checklists | Sequencer is in Game 5 | Space II is in Day 4-
-
Psyche he/theySurvivorhe/they
- Survivor
- Survivor
- Posts: 10885
- Joined: April 28, 2011
- Pronoun: he/they
donbot is slow - maybe not too slow since the average mafia thread is not very long compared to the alternative, but something to worry about; at very least i might want to add a progress tracker to curb impatience when threads with like 10,000 posts are being processed
also it explodes if a thread you're processing has one of your foe's accounts' posts in it, but i think that shouldn't be a problem in the mafia subforum. Might add some warning into the code or documentation somewhere...
i think that since i'm leaning toward specializing in data analysis over, like, moderation automation, i'll probably switch to a faster scraping scheme
it does feel quite easy to use! i think i need to bring the documentation closer to the homepage of the repo thoughYou can't step in the same river twice.-
-
Flubbernugget Survivor
- Survivor
- Survivor
- Posts: 11751
- Joined: June 26, 2014
-
-
Psyche he/theySurvivorhe/they
- Survivor
- Survivor
- Posts: 10885
- Joined: April 28, 2011
- Pronoun: he/they
-
-
Psyche he/theySurvivorhe/they
- Survivor
- Survivor
- Posts: 10885
- Joined: April 28, 2011
- Pronoun: he/they
A really concrete overarching goal of mine for a long time now is to build a foundation of preprocessed data and analysis code to ask if there are any reliable patterns in voting behavior that are useful as scum or town tells. The idea is that differences of win condition and knowledge probably drive distinct voting patterns between factions. I've called this effort "the Great Vote Count Analysis".
In theory, the tools and preprocessed data necessary to perform initial analyses of this sort already exist. We have a votecounter that than scan threads for and identify even really messy votes, games archives that track the roles and alliances and deaths of every player, and a hand-coded excel workbook identifying the post numbers of transitions between Day and Night phases across a huge number of games.
It's possible that we'll need even more than that - for example, proponents of VCA often insist that the motives/justifications and context surrounding votes are just as or more important for finding scum in votecounts as the votes themselves. But the basic core foundation of it all is already there and just needs to be tied together.
My hope is that once I tie it together, other people will be interested enough to try out analysis approaches themselves, but I know that's dumb.You can't step in the same river twice.-
-
skitter30 she/herLast Laughshe/her
- Last Laugh
- Last Laugh
- Posts: 36616
- Joined: March 26, 2017
- Pronoun: she/her
- Location: Est
i'd use something like that, i think
in the back of my mind i've been kinda wanting to work on developing something that would enable me to analyze votes in that way, but realizing the sheer amount of work i'd need to put in to get a dataset i could work with kinda makes me not want to start
where's this kept?In post 68, Psyche wrote:and a hand-coded excel workbook identifying the post numbers of transitions between Day and Night phases across a huge number of games.ShowHiatus once more.
'skitter is fucking terrifying' ~ town-bork about scum-me
'Skitter [was] terrifying to play against ngl' ~ scum-bork about town-me
'Going into lylo against scum!skit unprepared is like having someone force feed you dull razor blades. It's painful, and once it starts, you're pretty much dead' ~ NMSA
'Skitter you're a spirit animal's spirit animal' ~ slaxx-
-
Psyche he/theySurvivorhe/they
- Survivor
- Survivor
- Posts: 10885
- Joined: April 28, 2011
- Pronoun: he/they
i still haven't cleaned itIn post 21, Psyche wrote:https://docs.google.com/spreadsheets/d/ ... sp=sharing
Hi guys. The above spreadsheet is unfinished and will need to be cleaned a lot once done, but it will include the post number of every phase transition in all the games covered in Bob's data set, plus any newly completed games in the relevant subforums since. This kind of data should permit or facilitate a broad array of computational efforts tied to mafia and MS. I'll let you know when it's fully "done", but I'm too excited not to share it now. More later.
i paid some filipino lady to make this, was such a great schemeLast edited by Psyche on Tue Dec 17, 2019 6:05 pm, edited 1 time in total.You can't step in the same river twice.-
-
skitter30 she/herLast Laughshe/her
- Last Laugh
- Last Laugh
- Posts: 36616
- Joined: March 26, 2017
- Pronoun: she/her
- Location: Est
tyty, should have checked earlier in the threadShowHiatus once more.
'skitter is fucking terrifying' ~ town-bork about scum-me
'Skitter [was] terrifying to play against ngl' ~ scum-bork about town-me
'Going into lylo against scum!skit unprepared is like having someone force feed you dull razor blades. It's painful, and once it starts, you're pretty much dead' ~ NMSA
'Skitter you're a spirit animal's spirit animal' ~ slaxx-
-
Psyche he/theySurvivorhe/they
- Survivor
- Survivor
- Posts: 10885
- Joined: April 28, 2011
- Pronoun: he/they
So I'm steadily working to tie this data with the votecounter (i'll pre-extract all relevant votes) and game archives maybe also a Big Giant Scrape of all the relevant threads for good measure. The result will probably be more than a gig of data, but with that we should really be able to get this show on the road.You can't step in the same river twice.-
-
skitter30 she/herLast Laughshe/her
- Last Laugh
- Last Laugh
- Posts: 36616
- Joined: March 26, 2017
- Pronoun: she/her
- Location: Est
that would be ... incredibly awesomeShowHiatus once more.
'skitter is fucking terrifying' ~ town-bork about scum-me
'Skitter [was] terrifying to play against ngl' ~ scum-bork about town-me
'Going into lylo against scum!skit unprepared is like having someone force feed you dull razor blades. It's painful, and once it starts, you're pretty much dead' ~ NMSA
'Skitter you're a spirit animal's spirit animal' ~ slaxx-
-
Psyche he/theySurvivorhe/they
- Survivor
- Survivor
- Posts: 10885
- Joined: April 28, 2011
- Pronoun: he/they
oh good that's motivating to read
i'll talk up my progress here then
gameplan:
We got to make sure 3 things are in shape and either correct issues or filter out threads where there are issues (e.g. missing/borked posts, weird disruptions like modflaking, bizarre setups or mechanics that might disrupt analysis such as weird voting dynamics or post restrictions) :
- the phase transition spreadsheet above
- the game archives detailed the names, roles, and fates of every player (as well as identifying mods!)
- the votecounter
Think one way to sort of automate detection of issues in these data sources is to build a program that only works if these data sources are solid and will scream at you when it fails. I'll write a program that tries to use these data/tools to report who got lynched each Day and finally who won the game. The votecounter will start at each transition point as identified in the spreadsheet and track votes until it finds a lynch. It'll rely on the game archives to figure out whose votes count on a given Day as well as to check its work. If any one of the three above things is catastrophically wrong, the program should fail and I'll get the chance to either abandon the thread or fix the issue.
This wouldn't catch all errors (eg roles could still be wrong, and the correct lynch could be found by the votecounter even if it misses some votes or starts from the wrong post), but hopefully identifying/resolving the errors it does catch will solve or identify most of the errors that pass silently.
So the next checkpoint is getting this test program running. After that it's working through all the errors. Finally, it's reporting the data set.
But of course after that is the data analysis.
Let's see if I can get it done as a winter break project.You can't step in the same river twice.
Copyright © MafiaScum. All rights reserved.