solve_game: zero-sum game solver based on lpSolve

View source: R/solve_game.R

solve_gameR Documentation

zero-sum game solver based on lpSolve

Description

Finds Nash equilibrium in mixed strategies and expected winrate for both players in a zero-sum game specified by a payoff matrix

Usage

solve_game(W)

Arguments

W

Winrate matrix (from the perspective of the Hero)

Value

A list with a solution

Examples

solve_game(W = matrix(runif(9), 3, 3))

naturewillconfess/hearthstone documentation built on June 17, 2024, 1:41 p.m.