In this video we take the connect 4 game that we built in the How to Program Connect 4 in Python series and add an expert level AI to it. We start out with a very simple implementation of just dropping a piece randomly and then progress to choosing a column based on score and then finally implementing the minimax algorithm with alpha beta pruning.

Here is the link to the code we started with: https://github.com/KeithGalli/Connect…

Subscribe: https://www.youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw

#algorithms

How to Program a Connect 4 AI (implementing the minimax algorithm)
4.35 GEEK