Skip to content

A connect four game made using python

Notifications You must be signed in to change notification settings

MaalekDarkalX1/ConnectfourMD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6159f3f · · Oct 14, 2025

History

15 Commits
Oct 12, 2025
Oct 14, 2025
Oct 12, 2025
Oct 14, 2025
Oct 12, 2025
Oct 12, 2025

Repository files navigation

Connect Four (Python + Pygame)

This is a digital version of the classic Connect Four game built entirely in Python using Pygame. You can play in Single Player mode against a smart AI with multiple difficulty levels, or challenge a friend in Multiplayer mode on the same device. The goal is simple: drop your colored pieces into the grid and be the first to connect four in a row horizontally, vertically, or diagonally. The game includes a clean interface, smooth visuals, and real-time feedback as you play.ay.

Screen.Recording.2025-10-14.at.3.20.47.PM.mov

installing

run these commands:

pip install connectfourmd

python -m connectfourmd

Features:

Two game modes: Single Player & Multiplayerayer

Adjustable AI difficulty (Easy, Medium, Hard, Impossible)

Smooth and responsive gameplay

Built from scratch with NumPy and Pygame

How to Play:

Player 1 uses the red pieces

Player 2 (or AI) uses the yellow pieces

Click a column to drop your piece

First to connect 4 in any direction wins!

ConnectfourMD

A connect four game made using python

About

A connect four game made using python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages