Documentation
¶
Overview ¶
Package goxai provides a small API using the minimax algorithm with alpha-beta pruning.
Index ¶
Constants ¶
View Source
const ( Win = Score(10) Tie = Score(0) Loss = Score(-10) )
Constants denoting common score values.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Score ¶
type Score int
Score is a pseudo value rating a cell of a game. Higher values means more likelyhood to win.
func EvalFields ¶
EvalFields returns the first cell with the greatest score and the score. It executes paralel.
Click to show internal directories.
Click to hide internal directories.