Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grudger wins instead of the copycat #13

Open
rafales opened this issue Jul 29, 2017 · 3 comments
Open

Grudger wins instead of the copycat #13

rafales opened this issue Jul 29, 2017 · 3 comments

Comments

@rafales
Copy link

rafales commented Jul 29, 2017

in this step copycat was supposed to win but it didn't:

screenshot 2017-07-29 12 35 37

@jkoelling
Copy link

jkoelling commented Aug 1, 2017

The description is a bit inaccurate there: It's unlikely that the Grudgers win, but it is possible. As Nicky's description says, the two tie when all the others are out of the game. In that scenario they behave exactly the same and always get the same scores.
The setup here always leads to 25 Cooperative and 1 Grudger peep and everything after that is randomly decided. Since it starts out 25:1 it should rarely happen that the Grudgers actually win.

@ncase For me it actually didn't seem to be possible to reproduce this (using the playground + code tweaks to get the setup with 26 peeps). The single Grudger got killed off almost instantly every time, which did not feel random at all. Its chance of survival for the first round should be ~80% (if I'm not totally confused about this). It looks like your current implementation (using the comparator) for randomizing peeps with the same score is not very random. I'd say this is completely fine for the narrative part, but depending on how intensively people use the playground it might lead to unexpected behavior here and there. Interested in a pull request to fix this?

For anyone who's interested, the problem of array shuffling has been nicely visualized by Mike Bostock: https://bost.ocks.org/mike/shuffle/compare.html

@jkoelling
Copy link

Fixed by @audreyt #28.

@nerdius
Copy link

nerdius commented Sep 14, 2019

I've noticed similar things happening all over the place when the randomness is involved. E.g., when you tweak the level of miscommunication, between 8% and 11%, it's possible for either copycats, copykitten, or cheaters to win.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants