Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicAIAction ¶
BasicAIAction selects the best action for the side to move using negamax with alpha-beta pruning, MVV-LVA move ordering and quiescence search at the given depth. Depth 0 evaluates each candidate move with quiescence (captures and promotions are resolved); depth 1 additionally looks one ply ahead; etc. Returns the action, resulting game, and true; or (Action{}, game, false) when the game is already over.
func RandomAction ¶
RandomAction picks a uniformly random legal non-resign action for the side to move. Returns the action and the resulting game, or (Action{}, game, false) when the game is already over.
func TimedAIAction ¶
TimedAIAction selects the best action for the side to move using iterative deepening within the given time budget: it searches at increasing depths and returns the best move from the deepest fully completed iteration. Partial iterations are discarded, so the result is deterministic per depth reached. Returns the action, resulting game, and true; or (Action{}, game, false) when the game is already over.
Types ¶
This section is empty.