Index
All Classes and Interfaces|All Packages
M
- minimax(Board, Side, int, int, int) - Method in class io.github.colonelparrot.jchessify.Engine
-
Alpha-beta pruning recursive minimax algorithm
Calculates the best move to play
MINIMAX works by going down a move tree
each side must play the best move for themselves
we simply find the move that, assuming both sides play their best, yields the best outcome
Alpha-beta pruning is used to eliminate moves from the movement tree which we know don't need to be searched
All Classes and Interfaces|All Packages