The implementation of the Minimax library into a game works by overriding two classes to give an understanding of what a board looks like, what a possible move would be given the current state of the board, and what situation on the board is considered favorable.
In Unity, the Connect 4 game is created in a way that allows the Minimax library to gather the information it needs and correctly apply it. For example, there is a function to check if a move is possible, and a function to apply a given move to ensure the calculations in the library happen in game. It also features some multithreading to ensure Unity is not slowed down by the Minimax calculations.
There is not a significant amount to show for this project, so please have a look at the download on Itch.io and see if you can beat the AI!