Skip to content

Connect Four is a tic-tac-toe like two-player game in which players alternately drop one of their colored discs at a time from the top into a vertical board 7 columns across and 6 rows high.

Notifications You must be signed in to change notification settings

bhavishay97/connect-four-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect Four game

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 :

  1. Clone the repo.
  2. Go to connect-four-game\out\artifacts\connect_four_game_jar folder and open the launch.bat file in notepad or any text editor.
  3. 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.
  4. Save the file and close it.
  5. Now double click on the launch.bat file to run the JAR file and play the game.

Screenshots below :

main screen

file menu

help menu

about dialog box

winner 1

winner 2

About

Connect Four is a tic-tac-toe like two-player game in which players alternately drop one of their colored discs at a time from the top into a vertical board 7 columns across and 6 rows high.

Topics

Resources

Stars

Watchers

Forks