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!
- Host: GitHub
- URL: https://github.com/kabirdhillon7/Connect-4-Python
- Owner: kabirdhillon7
- Archived: true
- Created: 2023-02-10T23:55:28.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-15T02:26:42.000Z (over 1 year ago)
- Last Synced: 2024-12-20T07:19:17.065Z (6 months ago)
- Topics: connect-four, connect4, python
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)