engine2: engine2

View source: R/engine2.R

engine2R Documentation

engine2

Description

engine which chooses minimax between legal moves, with alpha beta pruning

Usage

engine2(game, depth)

Arguments

game

chess game object (i.e., a list with elements board, turn, history, and fen_history as created by newgame function)

depth

depth of the minimax. depth of 1 and 2 are fairly rapid.

Value

game with new move done


chess2plyrs documentation built on June 8, 2025, 10:03 a.m.