> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fincept.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Load Classic Game

> Load a well-known game from game theory and find its Nash equilibria. Available games: Prisoner's Dilemma (cooperation vs defection), Battle of the Sexes (coordination with conflicting preferences), Chicken (brinkmanship), Stag Hunt (cooperation risk), and Matching Pennies (zero-sum). Useful for teaching, benchmarking algorithms, and understanding canonical strategic scenarios. [Tier: STANDARD, Credits: 2]



## OpenAPI

````yaml api-specs/economics.json post /quantlib/economics/games/classic
openapi: 3.1.0
info:
  title: FinceptQuantLib API - Economics
  description: >-
    Economics module endpoints for FinceptQuantLib API - general equilibrium,
    game theory, auctions, and utility functions
  version: 3.0.0
  contact:
    name: Fincept API Support
    url: https://fincept.in
servers:
  - url: https://api.fincept.in
    description: Fincept API Production Server
security:
  - APIKeyHeader: []
tags:
  - name: quantlib-economics
    description: >-
      Economics module - general equilibrium, game theory, auctions, and utility
      theory
    x-displayName: Economics
paths:
  /quantlib/economics/games/classic:
    post:
      tags:
        - quantlib-economics
      summary: Load Classic Game
      description: >-
        Load a well-known game from game theory and find its Nash equilibria.
        Available games: Prisoner's Dilemma (cooperation vs defection), Battle
        of the Sexes (coordination with conflicting preferences), Chicken
        (brinkmanship), Stag Hunt (cooperation risk), and Matching Pennies
        (zero-sum). Useful for teaching, benchmarking algorithms, and
        understanding canonical strategic scenarios. [Tier: STANDARD, Credits:
        2]
      operationId: classic_game_quantlib_economics_games_classic_post
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - game_name
              properties:
                game_name:
                  type: string
                  description: Name of the classic game to load
                  enum:
                    - prisoners_dilemma
                    - battle_of_sexes
                    - chicken
                    - stag_hunt
                    - matching_pennies
                  example: prisoners_dilemma
            example:
              game_name: prisoners_dilemma
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      game:
                        type: string
                        description: Name of the game loaded
                        example: prisoners_dilemma
                      pure_nash_equilibria:
                        type: array
                        description: >-
                          List of pure strategy Nash equilibria as (row, col)
                          indices
                        items:
                          type: array
                          items:
                            type: integer
                        example:
                          - - 1
                            - 1
              example:
                success: true
                data:
                  game: prisoners_dilemma
                  pure_nash_equilibria:
                    - - 1
                      - 1
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '402':
          $ref: '#/components/responses/InsufficientTierError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: array
                    items:
                      type: object
              example:
                detail:
                  - loc:
                      - body
                      - game_name
                    msg: field required
                    type: value_error.missing
      security:
        - APIKeyHeader: []
components:
  responses:
    UnauthorizedError:
      description: Authentication information is missing or invalid
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
                example: Invalid API key
    InsufficientTierError:
      description: API tier insufficient for this endpoint
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
                example: Endpoint requires Basic tier or higher
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authentication. Get your key at
        https://api.fincept.in/auth/register

````