MiniMax: Implements the minimax algorithm

Description Usage Arguments Value Examples

Description

Implements the minimax algorithm

Usage

1
MiniMax(board, player, tree)

Arguments

board:

vector: the game board.

player:

integer: The player who's move it is.

player:

integer: The player who's move it is.

Value

a list: childValue: integer: The chosen value for the children. child: child of tree: corresponds to bestValu

Examples

1
MiniMax(rep(1:9), 1, tree)

pkristoff/TicTacToeImpls documentation built on May 19, 2019, 1:47 a.m.