In this series, we will create a command-line based Connect Four game in Python. And in this video, we are going to create our first helper functions. We are going to create a function that creates a grid, a function that prints out the grid, a function that executes a move on the grid and a function that checks if four dots are connected.
Links:
GitHub Repo: https://github.com/SebastianMantey/Connect-Four-Game
List Comprehensions: https://youtu.be/7eIMUQ3tVPk
Unpacking (starting at 19:17): https://youtu.be/vL_UcDX_xuU
Timestamps:
0:00 - Intro
0:32 - Create a grid
3:40 - Print out the grid
6:14 - Execute a move on the grid
11:03 - Horizontal check if four dots are connected
21:48 - Vertical check if four dots are connected
30:07 - Diagonal-right check if four dots are connected
33:37 - Diagonal-left check if four dots are connected
Download
0 formats
No download links available.
Python Beginner Project - Creating a Connect Four Game p.2: Helper Functions | NatokHD