Coder Social home page Coder Social logo

Grudger wins instead of the copycat about trust HOT 3 OPEN

ncase avatar ncase commented on August 20, 2024
Grudger wins instead of the copycat

from trust.

Comments (3)

jkoelling avatar jkoelling commented on August 20, 2024

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

from trust.

jkoelling avatar jkoelling commented on August 20, 2024

Fixed by @audreyt #28.

from trust.

nerdius avatar nerdius commented on August 20, 2024

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.

from trust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.