EvaluateBoard: Implements the minimax algorithm

Description Usage Arguments Value Examples

Description

Implements the minimax algorithm

Usage

1
EvaluateBoard(localBoard)

Arguments

board:

vector: the game board.

Value

an integer: 0: no one has one 1: player 1 has won -1: player -1 has won

Examples

1

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