Giter Club home page Giter Club logo

iterated-prisoner-s-dilemma's Introduction

Prisoners Dilemma (Classic)

Prisoners dilemma is a classic intro game theory problem. The police put each prisoner into an interrogation room. The police tell each player they have two options: snitch or stay. If both prisoners stay, then they both get half a year in prison. If one prisoner snitches, the snitch gets zero years, and the "stayer" gets one year. If they both snitch, they both get one full year. The priosners can not trade information, so they must both choose independently.

Prisoners Dilemma (V2)

Now suppose the Prisoners play this keep playing this game. Each time they get the result of the previous game, thus they are able to update their strategy. The player who "serves" the fewest years after many games wins.

Making a Prisoner

By implementing the Prisoner class, and by following the comments and the Pacifist and the Evil models, make your own Prisoners. If you do, make a pull request to add them. To test out your Prisoner use the test.py file.

Also, if you have any other PRs please make them.

If I get enough, I'll starting running challenges to see who the winner is.

Background

  • This is a background on the Prisoners Dilemma
  • This is a link to a previous similar experiment

iterated-prisoner-s-dilemma's People

Contributors

tracecarrasco avatar hpbrewton avatar nguyenandrew avatar

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.