Connect Four is a two-player connection game in which the players first choose a color and then take turns dropping colored discs from the top into a seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the next 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. Connect Four is a solved game. The first player can always win by playing the right moves.
This game is made using Java and JavaFX.
To run the game follow these steps :
- Clone the repo.
- Go to connect-four-game\out\artifacts\connect_four_game_jar folder and open the launch.bat file in notepad or any text editor.
- Replace the path to JavaFX lib folder within the quotes with your own JavaFX lib folder path e.g.
C:\Program Files\javafx-sdk-11.0.2\lib
. - Save the file and close it.
- Now double click on the launch.bat file to run the JAR file and play the game.
Screenshots below :