Dive into the fascinating world of strategic decision-making with the classic Prisoner's Dilemma game! Challenge your ability to trust, strategize, and understand the dynamics of cooperation and self-interest.
The Prisoner's Dilemma is a scenario where two players must decide whether to cooperate or defect. Each player's choice affects both their own outcome and the other player's outcome. Depending on the combined choices, different outcomes emerge, illustrating the tension between cooperation and individual gain.
- Clone or download this repository to your local machine.
- Run the game script (
prisoner_dilemma.py
) using a Python interpreter. - Enter your choices as Player A and Player B when prompted, choosing between 'cooperate' and 'defect'.
- Discover the consequences of your choices and the resulting outcome.
- Decide whether to play again or end the game.
- User-friendly text-based interface.
- Clear explanations of the game and choices at play.
- Option to replay the game as many times as desired.
- Explore the classic dilemma and its implications for decision-making.
- Python 3.x
- Clone the repository:
git clone https://github.com/joshuadanpeterson/prisoners-dilemma-game.git
- Navigate to the game directory:
cd prisoners-dilemma-game
- Run the game script:
python prisoner_dilemma.py
Click here to play on Replit
Contributions are welcome! If you find any issues or want to enhance the game, feel free to create a pull request.
This project is licensed under the MIT License.
Enjoy the game and explore the delicate balance between trust and self-interest in decision-making!