Class GameTheoryEngine

java.lang.Object
org.episteme.social.economics.GameTheoryEngine

public final class GameTheoryEngine extends Object
Computes strategic outcomes and equilibria for game theoretic models. Supports finding Pure Nash Equilibria and solving 2x2 mixed strategy games.
Since:
1.0
Version:
1.1
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • findPureNashEquilibria

      public static List<GameTheoryEngine.NashEquilibrium> findPureNashEquilibria(GameTheoryEngine.NormalFormGame game)
      Identifies all pure strategy Nash equilibria in a normal form game.
      Parameters:
      game - the game to analyze
      Returns:
      a list of pure equilibria
    • findMixedNashEquilibrium2x2

      public static Optional<double[]> findMixedNashEquilibrium2x2(GameTheoryEngine.NormalFormGame game)
      Calculates the mixed strategy probabilities for a symmetric 2x2 game.
      Returns:
      Optional array [p, q] where p is P1's probability for first strategy, q is P2's.
    • prisonersDilemma

      public static GameTheoryEngine.NormalFormGame prisonersDilemma()
      Factory for the classic Prisoner's Dilemma.