https://github.com/jakeoeding/connect-4
Two player implementation of the classic game Connect 4
https://github.com/jakeoeding/connect-4
connect-4 connect-four pygame python
Last synced: about 1 year ago
JSON representation
Two player implementation of the classic game Connect 4
- Host: GitHub
- URL: https://github.com/jakeoeding/connect-4
- Owner: jakeoeding
- Created: 2019-12-15T21:05:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T00:00:14.000Z (about 4 years ago)
- Last Synced: 2025-02-17T09:45:02.794Z (over 1 year ago)
- Topics: connect-4, connect-four, pygame, python
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Connect 4
Python implementation of the classic game [Connect 4](https://en.wikipedia.org/wiki/Connect_Four)
## Game Details
This is a two person game. Player 1 is red and Player 2 is yellow. The turn will alternate automatically after a piece is successfully placed. Once the game is over, players can select to play again.
## Implementation Details
- numpy is used to represent the grid that pieces can be dropped into
- pygame is used for the main interface. Pieces are placed by simply clicking on the desired column.
- Tkinter is used solely for the "play again?" messagebox prompt that appears when the game has reached the end (i.e. someone has four pieces in a row or the game board is full with no winner).
## Inspiration
I took some inspiration for this project from [this](https://www.youtube.com/playlist?list=PLFCB5Dp81iNV_inzM-R9AKkZZlePCZdtV) video series by Keith Galli