Ruby and recursion - find out all possible chess knights movements using minimax algorithm
The post explains knight movement, recursion, and the minimax algorithm, then shows how a 4x4 Ruby program builds a move tree and uses ranks to choose the computer’s next move.