Skip to content

Rust program that calculates mixed-strategy Nash equilibria.

License

Notifications You must be signed in to change notification settings

xtt28/strategy_engine_rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to strategy_engine's source repository.

strategy_engine is a Rust command-line program that computes the mixed strategy Nash equilibrium for a given payoff matrix. This program was originally implemented in some rather bad C.

Given a payoff matrix, strategy_engine computes a payoff function for each player. It then takes the partial derivative of each payoff function and finds the critical points of each function to find the MSNE.

Usage

Compiling/running

You will need the Rust toolchain.

# Clone the Git repository to local machine.
git clone https://github.com/xtt28/strategy_engine_rs.git
cd strategy_engine

# Run the program.
cargo run

Using the CLI

Enter the payoff values for each cell in the payoff matrix when prompted.

License

This software is licensed under:

SPDX-License-Identifier: GPL-3.0-or-later

being in concordance with the terms in the LICENSE file found in the root of this repository.

About

Rust program that calculates mixed-strategy Nash equilibria.

Topics

Resources

License

Stars

Watchers

Forks

Languages