This project implements the classic Connect Four game with a graphical user interface.

Connect Four is a two-player connection game in which players first choose a color and then take turns dropping colored discs into a seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the lowest available space within the column. The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four of one's own discs.
- ConnectFour.java: Interface defining the core game logic.
- ConnectFourGui.java: GUI for the Connect Four game using Java Swing.
- Clone the repository.
- Ensure you have Java installed on your system.
- Compile the Java files.
- Run the
ConnectFourGuiclass to start the game.
- Graphical user interface to play Connect Four.
- Players can drop tokens by clicking buttons corresponding to each column.
- Displays the current player's turn and announces the winner.
- Option to restart the game.
- Java Development Kit (JDK) 8 or higher.
- Click on the column buttons to drop your token.
- The game will automatically switch turns between players.
- The game ends when a player connects four tokens in a row, either horizontally, vertically, or diagonally.
- Developed for the Assignment.