Crate connect_four_ai

Crate connect_four_ai 

Source
Expand description

A high-performance implementation of a perfect Connect Four solver.

This library provides functionality to compute the score and optimal move for any given Connect Four position.

Structs§

AIPlayer
An AI player that uses a solver to determine the best move to play in a Connect Four position.
MoveEntry
Represents a single potential move entry.
MoveSorter
A fixed-size container that stores a list of moves sorted by score.
OpeningBook
A cache that stores pre-computed scores for opening game positions.
OpeningBookGenerator
A utility struct for generating a new OpeningBook.
Position
Represents a Connect Four position compactly as a bitboard.
Solver
A strong solver for finding the exact score of Connect Four positions.
TTEntry
Represents a single entry in the transposition table.
TranspositionTable
A transposition table that stores results from previous searches to avoid re-computing evaluations for the same game state.

Enums§

Difficulty
An enum to represent the difficulty of an AI player.
PositionParsingError
An enum for errors that can occur when parsing Connect Four positions.
TTFlag
A flag indicating what kind of information a transposition table entry represents.