Just like the simulations

This forum is for discussion related to the game.
User avatar
MURDERCAT
MURDERCAT
he/him
Survivor
User avatar
User avatar
MURDERCAT
he/him
Survivor
Survivor
Posts: 11708
Joined: March 18, 2016
Pronoun: he/him
Location: Chicago

Post Post #25 (ISO) » Sun Nov 15, 2020 1:27 pm

Post by MURDERCAT »

Lol
GTKAMURDERCAT

Retired from playing, find me on discord
User avatar
Jake The Wolfie
Jake The Wolfie
he/they
Mafia Scum
User avatar
User avatar
Jake The Wolfie
he/they
Mafia Scum
Mafia Scum
Posts: 3593
Joined: July 13, 2019
Pronoun: he/they
Location: Floorda

Post Post #26 (ISO) » Sun Nov 15, 2020 2:04 pm

Post by Jake The Wolfie »

In post 23, MURDERCAT wrote:Yeah I just did. 48%
What are some sample games? What assumptions were made?
User avatar
MURDERCAT
MURDERCAT
he/him
Survivor
User avatar
User avatar
MURDERCAT
he/him
Survivor
Survivor
Posts: 11708
Joined: March 18, 2016
Pronoun: he/him
Location: Chicago

Post Post #27 (ISO) » Sun Nov 15, 2020 2:25 pm

Post by MURDERCAT »

I am joking that would be way too hard
GTKAMURDERCAT

Retired from playing, find me on discord
User avatar
Jake The Wolfie
Jake The Wolfie
he/they
Mafia Scum
User avatar
User avatar
Jake The Wolfie
he/they
Mafia Scum
Mafia Scum
Posts: 3593
Joined: July 13, 2019
Pronoun: he/they
Location: Floorda

Post Post #28 (ISO) » Sun Nov 15, 2020 5:12 pm

Post by Jake The Wolfie »

So the assumption was that we'd believe you if you lied?

How insidious. You sir, are a heinously evil and wicked man. Shame on you!
User avatar
Gamma Emerald
Gamma Emerald
Any
Survivor
User avatar
User avatar
Gamma Emerald
Any
Survivor
Survivor
Posts: 69101
Joined: August 9, 2016
Pronoun: Any
Location: Hell on Earth (aka Texas)

Post Post #29 (ISO) » Sun Nov 15, 2020 6:25 pm

Post by Gamma Emerald »

Can you balance a randomly generated great idea game
<Embrace The Void>


“A flipped coin doesn't always land heads or tails. Sometimes it may never land at all...”
User avatar
MURDERCAT
MURDERCAT
he/him
Survivor
User avatar
User avatar
MURDERCAT
he/him
Survivor
Survivor
Posts: 11708
Joined: March 18, 2016
Pronoun: he/him
Location: Chicago

Post Post #30 (ISO) » Sun Nov 15, 2020 6:32 pm

Post by MURDERCAT »

Yeah that I could do
GTKAMURDERCAT

Retired from playing, find me on discord
User avatar
Gamma Emerald
Gamma Emerald
Any
Survivor
User avatar
User avatar
Gamma Emerald
Any
Survivor
Survivor
Posts: 69101
Joined: August 9, 2016
Pronoun: Any
Location: Hell on Earth (aka Texas)

Post Post #31 (ISO) » Sun Nov 15, 2020 8:06 pm

Post by Gamma Emerald »

(I won’t do this but you could technically do every conceivable setup in a row and find an EV for the entire setup)
<Embrace The Void>


“A flipped coin doesn't always land heads or tails. Sometimes it may never land at all...”
User avatar
MURDERCAT
MURDERCAT
he/him
Survivor
User avatar
User avatar
MURDERCAT
he/him
Survivor
Survivor
Posts: 11708
Joined: March 18, 2016
Pronoun: he/him
Location: Chicago

Post Post #32 (ISO) » Sun Nov 15, 2020 8:07 pm

Post by MURDERCAT »

Yes but I'd have to code all of it :lol:
GTKAMURDERCAT

Retired from playing, find me on discord
User avatar
Gamma Emerald
Gamma Emerald
Any
Survivor
User avatar
User avatar
Gamma Emerald
Any
Survivor
Survivor
Posts: 69101
Joined: August 9, 2016
Pronoun: Any
Location: Hell on Earth (aka Texas)

Post Post #33 (ISO) » Sun Nov 15, 2020 8:09 pm

Post by Gamma Emerald »

Yeah that’s why I’m not gonna make you do that
<Embrace The Void>


“A flipped coin doesn't always land heads or tails. Sometimes it may never land at all...”
User avatar
Awoo
Awoo
Mafia Scum
User avatar
User avatar
Awoo
Mafia Scum
Mafia Scum
Posts: 1096
Joined: September 1, 2017
Location: lmao city

Post Post #34 (ISO) » Mon Nov 16, 2020 6:19 am

Post by Awoo »

I tried coding this one as an exercize in haskell, but then I remembered that haskell is completely unreasonable to use when you need to work with numbers, and I resolved to never touch haskell again.
In post 0, BBmolla wrote:
Circus Dictatorship


13 Players

2 Mafia Goons

2 Clown Lovers

1 Town Loyal Doctor
8 Vanilla Townies

  • Clowns do not have a nightkill, instead they have a factional loyal protect or a factional killblock.
  • If the Clowns survive till Day 4, they win.
  • If the Mafia are eliminated before Day 4, Town wins and Clowns lose.
  • Traditional win conditions apply on the death of a Clown. (Town wins when Mafia are eliminated, Mafia wins when number is equal to town)


I SWEAR I posted this yesterday but apparently not

Please help me balance it, I had Day 3 originally but thought it might be too hard?
User avatar
Awoo
Awoo
Mafia Scum
User avatar
User avatar
Awoo
Mafia Scum
Mafia Scum
Posts: 1096
Joined: September 1, 2017
Location: lmao city

Post Post #35 (ISO) » Mon Nov 16, 2020 6:22 am

Post by Awoo »

That being said, the pattern matching in haskell is SUPER nice for coding setups, you literally just write out one endgame per line and everything Just Works (TM). Shame about the fromIntegral nonsense.
User avatar
MURDERCAT
MURDERCAT
he/him
Survivor
User avatar
User avatar
MURDERCAT
he/him
Survivor
Survivor
Posts: 11708
Joined: March 18, 2016
Pronoun: he/him
Location: Chicago

Post Post #36 (ISO) » Mon Nov 16, 2020 6:31 am

Post by MURDERCAT »

I played around with haskell a bit but was never any good at it. I usually use python or R depending on exactly what the simulation involves.

This looks like what Gypyx submitted to this month's setup challenge
GTKAMURDERCAT

Retired from playing, find me on discord
User avatar
Jake The Wolfie
Jake The Wolfie
he/they
Mafia Scum
User avatar
User avatar
Jake The Wolfie
he/they
Mafia Scum
Mafia Scum
Posts: 3593
Joined: July 13, 2019
Pronoun: he/they
Location: Floorda

Post Post #37 (ISO) » Mon Nov 16, 2020 6:54 am

Post by Jake The Wolfie »

User avatar
MURDERCAT
MURDERCAT
he/him
Survivor
User avatar
User avatar
MURDERCAT
he/him
Survivor
Survivor
Posts: 11708
Joined: March 18, 2016
Pronoun: he/him
Location: Chicago

Post Post #38 (ISO) » Mon Nov 16, 2020 7:07 am

Post by MURDERCAT »

I will have to think about how to do this one, as it's not clear when the game "ends." There's also a ton of abilities, so I'm not sure if random usage of them will really capture the setup well. But I can give it a shot this weekend.
GTKAMURDERCAT

Retired from playing, find me on discord
User avatar
Awoo
Awoo
Mafia Scum
User avatar
User avatar
Awoo
Mafia Scum
Mafia Scum
Posts: 1096
Joined: September 1, 2017
Location: lmao city

Post Post #39 (ISO) » Tue Nov 17, 2020 10:54 am

Post by Awoo »

Well, typically I use python too, but I use it to calculate the expected value to an exact number, not by approximation. Which can be done very easily using recursive DP + memoization for simple setups without a ton of roles. Every new role or faction adds an extra dimension of complexity to the space you need to enumerate over.
User avatar
Gypyx
Gypyx
She/Her
Jack of All Trades
User avatar
User avatar
Gypyx
She/Her
Jack of All Trades
Jack of All Trades
Posts: 7783
Joined: March 25, 2020
Pronoun: She/Her
Location: France

Post Post #40 (ISO) » Tue Nov 17, 2020 11:08 pm

Post by Gypyx »

In post 36, MURDERCAT wrote:This looks like what Gypyx submitted to this month's setup challenge
well that's because it's the setup i got my inspiration from x)

also cool thread while i'm at it
White Flag : Carebear Edition is in signups ! (10/13) sign up if you want a low pressure, high friendliness game !

bottom text
User avatar
Infinity 324
Infinity 324
they (pl.)
Survivor
User avatar
User avatar
Infinity 324
they (pl.)
Survivor
Survivor
Posts: 18337
Joined: April 7, 2013
Pronoun: they (pl.)
Contact:

Post Post #41 (ISO) » Wed Nov 18, 2020 10:35 am

Post by Infinity 324 »

Wondering about the limit of the EV of X:2 mountainous as x approaches infinity. Like what's the EV of 35:2 mountainous for example?
Show
new GTKAS

<3 you are valid

plural system, we may or may not sign
User avatar
Gypyx
Gypyx
She/Her
Jack of All Trades
User avatar
User avatar
Gypyx
She/Her
Jack of All Trades
Jack of All Trades
Posts: 7783
Joined: March 25, 2020
Pronoun: She/Her
Location: France

Post Post #42 (ISO) » Wed Nov 18, 2020 10:38 am

Post by Gypyx »

Well, if x literally approaches infinity there is no EV i think

But good question for 35:2
White Flag : Carebear Edition is in signups ! (10/13) sign up if you want a low pressure, high friendliness game !

bottom text
User avatar
MURDERCAT
MURDERCAT
he/him
Survivor
User avatar
User avatar
MURDERCAT
he/him
Survivor
Survivor
Posts: 11708
Joined: March 18, 2016
Pronoun: he/him
Location: Chicago

Post Post #43 (ISO) » Wed Nov 18, 2020 10:43 am

Post by MURDERCAT »

This is a fun one, I will make a plot. 31-2 is only ~60% town win according to the EV project, which is surprising at first but also makes sense. 98-2 mountainous viable? :lol:
GTKAMURDERCAT

Retired from playing, find me on discord
User avatar
MURDERCAT
MURDERCAT
he/him
Survivor
User avatar
User avatar
MURDERCAT
he/him
Survivor
Survivor
Posts: 11708
Joined: March 18, 2016
Pronoun: he/him
Location: Chicago

Post Post #44 (ISO) » Wed Nov 18, 2020 11:13 am

Post by MURDERCAT »

Image

The numbers may be hard to see depending on your theme, if so you may need to download the figure. The x axis is the number of town players and the y axis is town win %
GTKAMURDERCAT

Retired from playing, find me on discord
User avatar
Infinity 324
Infinity 324
they (pl.)
Survivor
User avatar
User avatar
Infinity 324
they (pl.)
Survivor
Survivor
Posts: 18337
Joined: April 7, 2013
Pronoun: they (pl.)
Contact:

Post Post #45 (ISO) » Wed Nov 18, 2020 11:43 am

Post by Infinity 324 »

Wow that's interesting, looks like it does approach infinity but very slowly. Looks like it doesn't get up to 90% winrate until 700:2 lol
Show
new GTKAS

<3 you are valid

plural system, we may or may not sign
User avatar
MURDERCAT
MURDERCAT
he/him
Survivor
User avatar
User avatar
MURDERCAT
he/him
Survivor
Survivor
Posts: 11708
Joined: March 18, 2016
Pronoun: he/him
Location: Chicago

Post Post #46 (ISO) » Wed Nov 18, 2020 12:01 pm

Post by MURDERCAT »

I'm sure there is some smart person like implosion or Ircher who knows or could figure out the exact formula. This is the relationship you'd expect though because at very high numbers of townies adding a single townie doesn't really do much to change the odds of hitting scum. Compared to lower numbers where obviously there is a big difference between 7:2 and 9:2.
GTKAMURDERCAT

Retired from playing, find me on discord
User avatar
Awoo
Awoo
Mafia Scum
User avatar
User avatar
Awoo
Mafia Scum
Mafia Scum
Posts: 1096
Joined: September 1, 2017
Location: lmao city

Post Post #47 (ISO) » Wed Nov 18, 2020 12:38 pm

Post by Awoo »

This is already a solved problem. Town winrate always goes to infinity in mountainous as number of townies approaches infinity. There is no known closed form solution, only a recursive function. In order to balance mountainous, the number of townies is bounded quadratically in proportion to the number of mafia.

The approximation I found is: T ~= 4.08766637 S^2 + 1.318112 S - 0.9068
Then round T to the nearest integer such that T + S is odd.

viewtopic.php?f=115&t=75528
viewtopic.php?p=8088743#p8088743
viewtopic.php?p=10027427#p10027427

Somewhere on Google scholar, someone mathematically proved a more interesting result that holds for things like nightess, double day, etc, but I can't find it right now.
User avatar
Awoo
Awoo
Mafia Scum
User avatar
User avatar
Awoo
Mafia Scum
Mafia Scum
Posts: 1096
Joined: September 1, 2017
Location: lmao city

Post Post #48 (ISO) » Wed Nov 18, 2020 1:00 pm

Post by Awoo »

Here it is. This one asymptotically solves all setups that are like double day / double night / 3 days and two nights / etc...

https://arxiv.org/pdf/0804.0071.pdf

by proving this conjecture from a previous paper:

Image

It's worth noting that these papers have one dumb assumption that does not affect asymptotic behavior: namely that EV(1 town, 1 mafia) = 0.5, because "when there is a tie in votes you kill randomly" (mathematicians seem to want to skirt around the concept of NLing because they need the game to terminate). And for some examples that we all know and love that are known to satisfy that equality are mountainous (d/r = 1/2 -> mafia proportional to square root of town), nightless: (d/r = 1/1 -> mafia is linear to town, see nightless expectation rule), double day: (d/r = 2/3 -> .. etc... )
User avatar
MURDERCAT
MURDERCAT
he/him
Survivor
User avatar
User avatar
MURDERCAT
he/him
Survivor
Survivor
Posts: 11708
Joined: March 18, 2016
Pronoun: he/him
Location: Chicago

Post Post #49 (ISO) » Wed Nov 18, 2020 1:03 pm

Post by MURDERCAT »

I love that there is a literature on this
GTKAMURDERCAT

Retired from playing, find me on discord
Post Reply

Return to “Mafia Discussion”