Skip to main content
POST
/
quantlib
/
economics
/
games
/
fictitious-play
Fictitious Play Algorithm
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/economics/games/fictitious-play \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "payoff_matrix_1": [
    [
      3,
      0
    ],
    [
      5,
      1
    ]
  ],
  "payoff_matrix_2": [
    [
      3,
      5
    ],
    [
      0,
      1
    ]
  ],
  "iterations": 1000,
  "seed": 42
}
'
{
  "success": true,
  "data": {
    "strategy_1": [
      0.1,
      0.9
    ],
    "strategy_2": [
      0.05,
      0.95
    ],
    "iterations": 1000
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
payoff_matrix_1
number[][]
required

Payoff matrix for Player 1

Example:
[[3, 0], [5, 1]]
payoff_matrix_2
number[][]
required

Payoff matrix for Player 2

Example:
[[3, 5], [0, 1]]
iterations
integer
default:1000

Number of iterations to run

Required range: x >= 1
Example:

1000

seed
integer | null

Random seed for reproducibility (null for random)

Example:

42

Response

Successful Response

success
boolean
Example:

true

data
object