← ~/visualizations

game-theory-introduction

Shows a 2×2 payoff matrix u_i(s) for two rational players. Animated scans highlight each player’s best responses (holding the other’s strategy fixed). Cells where both best-response markers overlap pulse to indicate a Nash equilibrium - no player can unilaterally deviate to improve payoff.

canvasclick to interact
t=0s

practical uses

  • 01.Explaining payoff matrices and strategy profiles in introductory game theory
  • 02.Demonstrating best-response reasoning and how Nash equilibria are identified
  • 03.Comparing outcomes like cooperation vs. defection and why equilibria can differ from socially optimal results

technical notes

Pure Canvas2D, green-on-black blocky UI with snapped geometry. Best responses are computed from the payoff table each frame; animation cycles through column/row best-response scans then pulses equilibrium. Responsive scaling via scale = min(w,h)/baseSize; minimal shapes/text for 60fps.