Connect 4 is a two-player implementation of the popular Connect 4 game 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.
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
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.
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.
The following packages are required to run this project:
If you have any questions or feedback, you can reach me through the following channels:
- GitHub: @kabirdhillon7
- LinkedIn: Kabir Dhillon