Skip to content

Releases: rsavitt/gamescape

v0.1.0 — Initial Release

22 Feb 21:02

Choose a tag to compare

gamescape v0.1.0

Evolutionary game theory dynamics in your terminal.

Features

  • Replicator dynamics engine for 2x2 symmetric games
  • Fixed-point analysis with stability classification
  • Game classification: dominant-cooperate, dominant-defect, coordination, coexistence, bistable
  • ASCII phase portraits: flow lines and x(t) trajectory plots with ANSI colors
  • 5 classic games built in: Prisoner's Dilemma, Stag Hunt, Hawk-Dove, Coordination, Harmony
  • Side-by-side comparison of all games with --all
  • Custom matrices via --matrix a,b,c,d
  • Usable as a library: from gamescape.dynamics import PayoffMatrix, find_fixed_points

Install

pip install gamescape

Usage

gamescape prisoners-dilemma
gamescape hawk-dove --no-color
gamescape --matrix 3,0,5,1
gamescape --all