An open API service indexing awesome lists of open source software.

https://github.com/kabirdhillon7/Connect-4-Python

Building a Connect 4 project using Python!
https://github.com/kabirdhillon7/Connect-4-Python

connect-four connect4 python

Last synced: 5 months ago
JSON representation

Building a Connect 4 project using Python!

Awesome Lists containing this project

README

        

# Connect-4
Connect 4 is a two-player implementation of the popular [Connect 4 game](https://en.wikipedia.org/wiki/Connect_Four) using Python.

The game is played on a 6x7 grid and players take turns dropping their pieces into the columns. The first player to connect four pieces vertically, horizontally, or diagonally wins the game.

## Table of Contents

- [Description](#description)
- [Requirements](#Requirements)
- [Demo](#demo)
- [Installation](#installation)
- [Testing](#testing)
- [Dependencies](#dependencies)
- [Contact](#contact)

## Demo
### Current Progress Walkthrough

### Progress 1 Walkthrough


## Usage

Clone the repository and run the game using Python. To run the game, you must have Python installed on your computer. Once Python is installed, you can clone the repository and run the following commands in your terminal.

The game will prompt players to select a column to drop their pieces into. The game continues until one player wins or the board is filled.

```
git clone https://github.com/kabirdhillon7/connect4.git
cd connect4
python connect4.py
```

### Playing the Game

The game is played by two players, who take turns dropping their pieces into a vertical board. The goal of the game is to connect four pieces of your own color vertically, horizontally, or diagonally.

To drop a piece into the board, the player must enter the column number they want to drop their piece into. The piece will fall to the lowest available slot in that column.

The game ends when one player connects four pieces in a row, or the board is full with no winner.

## Files

The following is a list of files in the repository:

- `connect4.py`: The main game file containing all the logic for the Connect 4 game.

## Dependencies

The following packages are required to run this project:

- [NumPy](https://numpy.org)
- [Pygame](https://github.com/pygame/pygame)

## Contact

If you have any questions or feedback, you can reach me through the following channels:

- GitHub: [@kabirdhillon7](https://github.com/kabirdhillon7)
- LinkedIn: [Kabir Dhillon](https://www.linkedin.com/in/kabirdhillon/)