In this series, we will create a command-line based Connect Four game in Python. And in this video, we are going to create the AI opponent. First, we just create a random AI opponent. Then, we create an AI opponent that can make a winning or defending move. And lastly, we create an AI opponent that can think two steps ahead.
Links:
GitHub Repo: https://github.com/SebastianMantey/Connect-Four-Game
Timestamps:
0:00 - Intro
0:28 - Play a random column
5:13 - Don't play a full column
8:30 - Make a winning move
14:38 - Make a defending move
16:28 - Don't block subsequent winning moves
23:13 - Don't enable subsequent losing moves
Download
0 formats
No download links available.
Python Beginner Project - Creating a Connect Four Game p.4: AI Opponent | NatokHD