arthaud / min-max

Min-max algorithm for game theory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Min-Max

A generic C++ implementation of the min-max algorithm for game theory.

This is provided as a single header file in include/min-max/MinMax.h. This can be used for any 2-player game by implementing the State abstract class. An example with the Tic Tac Toe game is provided in source/TicTacToe.cpp.

To play against the min-max AI:

$ make
$ ./tictactoe

About

Min-max algorithm for game theory

License:MIT License


Languages

Language:C++ 98.3%Language:Makefile 1.7%