Monte Carlo Tree is a method based on random numbers that is very effective in playing two player games. You don’t have to teach anything to the program, it will figure out the good moves based on random simulations.
Use Monte Carlo Tree Search Algorithm with Python Turtle to make a smart connect 4 player.