Skip to content

Implementation of a Connect Four game for 2 players using JavaFX, following the Model-View-Controller desing pattern

Notifications You must be signed in to change notification settings

omer-lebel/Connect-Four-JavaFx

Repository files navigation

Connect Four Game

Implementation of a Connect Four game for 2 players using JavaFX, following the Model-View-Controller (MVC) design pattern:

  • Model: ConnectFourLogic handles the game rules, board state, and win conditions.
  • View: The user interface is defined in the ConnectFour.fxml file.
  • Controller: ConnectFourController manages user interactions and updates the UI.

Connect Four Game Demo

Running the Game

To run the game, make sure you have JDK 11 or higher and JavaFX SDK installed. Them from your command line:

Replace "/path/to/javafx-sdk/lib" with the actual path to your JavaFX SDK lib directory.

# Compile
javac --module-path "/path/to/javafx-sdk/lib" --add-modules javafx.controls,javafx.fxml *.java

# Run
java --module-path "/path/to/javafx-sdk/lib" --add-modules javafx.controls,javafx.fxml ConnectFourApp

License

MIT

About

Implementation of a Connect Four game for 2 players using JavaFX, following the Model-View-Controller desing pattern

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages