A comprehensive game theory library demonstrating both economical and non-economical decision-making scenarios.
This repository implements fundamental game theory concepts, with special attention to scenarios where players make decisions that are "一點也不經濟" (not at all economical) - demonstrating how real-world decision-making often deviates from purely rational economic models.
- Classic Game Theory Models: Prisoner's Dilemma, Nash Equilibrium, Zero-Sum Games
- Behavioral Economics: Models showing irrational decision-making
- Non-Economic Strategies: Examples where players prioritize non-monetary outcomes
- Bilingual Documentation: English and Chinese (中文) support
from game_theory import PrisonersDilemma, Player
# Create a game where players make "uneconomical" choices
game = PrisonersDilemma()
player1 = Player("Alice", strategy="cooperative") # Not always economical
player2 = Player("Bob", strategy="vindictive") # Definitely not economical
result = game.play(player1, player2)
print(f"Result: {result}")game_theory/- Core game theory implementationsexamples/- Demonstration scripts and scenariosdocs/- Detailed documentation and theory explanations