Angry Bits

Words on bytes and bits

Minimax, the chess engine's core

A chess engine selects the best move to do given a board configuration. There are several ways to achieve it, despite the common sense, the most used and studied is the simplest: exhaustive search.

Quick median

As I haven't found any explanation on the web about this useful algorithm, I've decided to write this post. Consider this a follow up of the previous post about the n-smallest algorithm.

Disclamer

Actually the problem we wanted to solve in that post was not really the generic ...