Cookie Thread Act 3: The Cookie Strikes Back

except for combinatorics mafia
i will have to add more optimizations and put it in C :pensive_cat:

1 Like

one time I was working with txt files as storage because my cloud hosting thing didnt allow hard storage or databases without paying money (evil) (also I was stupid at this time but thats unrelated) and the best most memory efficient way to select a random line from the file was in python and I had to port it over to go

1 Like

This resonates with me on a personal level.

1 Like
  1. it is rounding after all. what does 8.5 do however? uhhh lets say 8.5 does not matter and I do not care

8.5 goes to 8, I think.

one time i was working with .csv files as storage because i was dumb and didn’t realize i should just use jsons (this is in terminal of lies and now it’s painful to change so it will just be there)

so like what is combinatorics mafia if you ahve to optimise it and put it in C im intrigued

1 Like

8.5 rounding up for closest is just as weird as rounding down. I dont think its very important

1 Like

actual life goal

COMBINATORICS MAFIA!!! it’s the setup May is hosting soon

i would like to find a strategy that optimizes the worst case number of guesses*, and how many guesses this strategy requires

*I’m imagining it as a singleplayer game where it’s just town guessing mafia, rather than two sides actually competing, as it’s way simpler that way

2 Likes

we went from lesbian trophy wife to math in the span of MINUTES run for ur life

2 Likes

I need to take a look at this once I get out of class.

Just finished my mandarin exam

I fucked that last question

oh god mafia theory? you’re doing mafia theory
good luck when I tried to simulate for town of salem massclaiming i went insane

1 Like

AAAAAAAAAAAAAAAAAAAAAAAAAAAA

:running_man:

btw

if you are a man, and you are wearing fingerless gloves out in public

i need you to seek therapy

i love mafia theory
though i usually stick to setups without claiming because it makes the EV functions really easy to write

1 Like
def jailEV(town, mafia):
  if mafia == 1:
    return 0
  if town <= mafia:
    return 1
  townLimChance = town / (town + mafia)
  mafiaLimChance = 1 - townLimChance
  return townLimChance * jailEV(town - 1, mafia) + mafiaLimChance * jailEV(town - 1, mafia - 1)

jailEV(8, 3)

nya nya nya :flushed:

1 Like

Here’s the problem with me trying to code something.

1 Like

specialising in semi opens was the worst mistake of my life. I only calc’d based off subalignments and not roles, but even then man it was evil. maybe my brain was just too small then

1 Like