Skip to content

rudravashishtha/connect4-pygame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Connect4 Game with Pygame

A simple Connect4 game built using Pygame.

Connect4 Game Screenshot

Installation

To install and run the game, follow these steps:

  1. Clone the repository: 'https://github.com/rudravashishtha/connect4-pygame.git'
  2. Navigate to the project directory: cd connect4_pygame
  3. Install the dependencies: pip install -r requirements.txt
  4. Run the game: python main.py

How to Play

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.

Features

This Connect4 game has the following features:

  • Two-player mode: Play against another player on the same computer.

Credits

This project was inspired by Connect Four, a classic board game. Pygame was used to create the game interface.

About

Connect4 is a two-player game where each player takes turns dropping their colored discs into a vertical grid.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages