A Connect Four game implementation written in C for a school project.
This is a classic Connect Four game built entirely in C, featuring a command-line interface where two players take turns dropping pieces into a grid, aiming to connect four pieces in a row (horizontally, vertically, or diagonally).
- A C compiler (gcc, clang, or similar)
- Make (optional, if a Makefile is included)
To compile the project:
gcc -o connect_four *.cOr if a Makefile is available:
makeExecute the compiled program:
./connect_fourFollow the on-screen prompts to play the game.
- Two players alternate turns
- Each player drops a piece into one of the columns
- The piece falls to the lowest available row
- First player to connect four pieces in a row wins
- The game ends in a draw if the board fills up
- Game logic and board management
- Player input handling
- Win condition detection
- Command-line interface
This project was created for educational purposes.