0
I've written a mini max algorithm, which I would like to simplify.
I call the function like this:
board.push(move)
score = minmax(board, depth, tree)
board.pop()
And the actual function:
def minimax(board: chess.Board, depth: int, tree: MinMaxTree = None) -> int:
if finished(board) or depth ...