Skip to content

Instantly share code, notes, and snippets.

View mac0201's full-sized avatar
🎯
Focusing

mac0201

🎯
Focusing
View GitHub Profile
@mac0201
mac0201 / game.py
Created December 26, 2021 01:30
Connect 4 - Python
from termcolor import colored
class Connect_Four:
def __init__(self, width: int, height: int, players: list):
self.width = width
self.height = height
self.empty_box = '| |'
self.board = [[self.empty_box for col in range(width)]
for row in range(height)]
self.players = players