Minimax, alpha beta. Min comes before Max, alpha comes before beta.
Minimizer uses alpha, maximizer uses beta.
alpha is passed from maximizer to minimizer. maximizer says, beat a score of 10
(it wants something greater). minimizer gets one score of 8. minimizer stops
because it can’t get above 8, it is a minimizer after all so exploration will
only reduce this score, and it will not be useful by the maximizer.
beta is passed from minimizer to maximizer. minimizer says, give me something
smaller than 5. maximizer gets one score of 6. it stops because it can’t get a
score less than 6 because it is a maximizer, any further exploration will only
make the score worse.
When do alpha and beta get updated? Obviously alpha is something that maximizer
uses to inform the minimizer, so it is continuously updating the alpha as it
explores its options and finds a better score. Similarly beta is updated by the
minimizer when it finds a lower score.