This is the classic 2-player game of Connect 4. Play against another player by taking turns on the same machine and see who can connect four disks first!
- Make sure you have installed Java on your system
- Install NetBeans to run the program
- Clone the repository
git clone https://github.com/Serylda/Connect4.git
- Open Apache NetBeans
- Click "File" -> "Open Project..."
- Select "Connect4"
- Navigate to Connect4\src\main\java\Connect4 to view the source code
- Run
Window.javato launch the game
Once the game is opened on a Java Swing GUI window, you should be on the "Login" tab that displays the title of the game. Click on the "Game" tab to play the game. 2 players are required to play. The players will alternate turns. Players will select a column to drop a disc in. The game will continue until a player gets 4 of their discs next to each other vertically, horizontally, or diagonally. The game may even tie if this doesn't occur for either player but the grid becomes full. The game can be reset by pressing the "End Game" button.
Connect4.mp4
After coding this program, we thought about a lot of potential features that we could add, such as animations for the disks, login profiles to store player statistics, and even an AI to play against in a single-player mode. We are always open to new ideas, and if you would like to add a new feature to our project, please follow these steps:
- Fork the repository
- Create a new branch to work on the feature
- Commit your changes
- Push your changes to the branch
- Create a pull request