A simple Connect4 game built using Pygame.
To install and run the game, follow these steps:
- Clone the repository: 'https://github.com/rudravashishtha/connect4-pygame.git'
- Navigate to the project directory:
cd connect4_pygame - Install the dependencies:
pip install -r requirements.txt - Run the game:
python main.py
Connect4 is a two-player game where each player takes turns dropping their colored discs into a vertical grid. The objective of the game is to connect four of your discs in a row horizontally, vertically, or diagonally before your opponent does.
To play the game, use the mouse to move the cursor, and press the left click to drop your disc into the column of your choice. The game ends when one player connects four discs in a row or when the board is full and no player wins.
This Connect4 game has the following features:
- Two-player mode: Play against another player on the same computer.
This project was inspired by Connect Four, a classic board game. Pygame was used to create the game interface.
