Skip to content

gonll/collective-prisoners-dilemma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collective Prisoner's Dilemma 🎲

About 📖

Dive into the intriguing world of the prisoner's dilemma with us! 🌍🎲 Upload your unique strategy and join the challenge to outsmart other developers. This application is your playground for strategy simulation, where you can experiment with various approaches in the prisoner's dilemma. It's a dynamic environment that lets you test, adapt, and see how your strategies fare against others. So, are you ready to jump in and see if you can emerge as the top strategist? Let the games begin.

Inspired by Derek (Veritasium) https://www.youtube.com/watch?v=mScpHTIi-kM

Installation 💻

To get started with this project, clone the repository to your local machine.

git clone https://your-repository-url.git
cd colective-prisoners-dilema

Ensure you have Node.js installed, then install the dependencies:

yarn

Running the Application

To run the application, use the following command:

yarn start

Configuration ⚙️

The behavior of the simulation can be adjusted using several settings. These are found at the top of the main script:

  • numberOfRandomPrisoners: Number of randomly generated prisoners to include in the simulation. Default is 10.
  • minRounds: Minimum number of rounds each pair of prisoners will compete against each other. Default is 150.
  • maxRounds: Maximum number of rounds each pair of prisoners can compete against each other. Default is 300.
  • ammountOfGames: Total number of games the simulation will run. Default is 5.
  • showAmmountResults: How many prisoners should be listed in podium. Default is 20.
  • runAllStrats: Runs all available strats against each other. Won't create random nor repeated prisoners. Default is false.

You can modify these settings to suit your needs and experiment with different scenarios.

Contributing 🤝

We'd love to see your creative ideas! If you've got a strategy up your sleeve or ways to jazz up our app, please swing a pull request our way with your awesome changes. ☕

License 📄

This project is licensed under the MIT License.

About

Join a collective game of the prisoner's dilemma. Upload your strategy and compete to win against other developers.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages