This project is a C++ implementation of the classic Connect Four game using the SFML library. The game is designed for two players, where each player takes turns dropping colored discs into a vertical grid. The objective is to connect four of one's own discs horizontally, vertically, or diagonally before the opponent.
- Two-player gameplay.
- Graphical user interface with a visual representation of the game board.
- Dynamic status updates to indicate the current player's turn.
- Visual indication of the winning sequence of discs.
- Option to reset the game and start a new match.
- C++ Compiler
- SFML Library (version 2.5.1 or later)
-
Install SFML
Follow the instructions on the official SFML website to download and install SFML for your operating system.
-
Clone the Repository
git clone <repository-url> cd connect-four
3.Compile the Code Ensure you have a C++ compiler installed. Use the following command to compile the code:
g++ -o connect_four main.cpp -lsfml-graphics -lsfml-window -lsfml-system
4.Run the Game
./connect_four