Skip to main content
2025 Python Packaging Survey is now live!  Take the survey now

connect four game using pygame

Project description

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.

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page