I have a school task to make a gomoku AI with minimax algorithm.
So far I have made a good enough evaluation function that actually wins my teachers file without minimax.
The function takes in a board (2d array) and player.
But I don’t understand how to make the minimax algorithm. Could someone explain it to me in pseodocode. I know the language well, I just don’t understand how to apply the algorithm.