Play connect4 against a minimax algorithm implementation in python using pygame.
Results obtained with depth 4:
Results obtained with depth 2:
As we can see the further the depth the better plays the algorithm will make, and as a results it will be able to prevent inevitable defeat.