Minimax algorithm implementation with D3 visualization of results