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
To get started with this project, clone the repository to your local machine.
git clone https://your-repository-url.git
cd colective-prisoners-dilemaEnsure you have Node.js installed, then install the dependencies:
yarnTo run the application, use the following command:
yarn startThe 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.
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. ☕
This project is licensed under the MIT License.