Add Prisoner's Dilemma tutorial with Colab integration#121
Merged
Conversation
alexanderthclark
commented
May 26, 2025
Owner
- Create interactive Jupyter notebook for Google Colab
- Add RST tutorial page with Colab launch button
- Demonstrate economics-focused tutorial approach
- Include game theory analysis with Nash equilibrium
- Show minimal working example of notebook integration
- Create interactive Jupyter notebook for Google Colab - Add RST tutorial page with Colab launch button - Demonstrate economics-focused tutorial approach - Include game theory analysis with Nash equilibrium - Show minimal working example of notebook integration
Clarify that payoffs are utilities (higher is better) rather than prison sentences. Use proper game theory terminology: - Mutual cooperation reward - Mutual punishment - Sucker's payoff - Temptation payoff
- Update code to convert equilibrium indices to action names - Show proper expected output format - Use existing Game.prisoners_dilemma() class method
- Match simplified code example from notebook - Update expected output to show nash() result as indices - Explain that [(1, 1)] corresponds to (Defect, Defect) - Maintain economic analysis and educational content - Ready for Colab integration with working example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.