Skip to content

Knowhere-coding/Connect-4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect 4

Connect-4 is an implementation of the classic Connect 4 game with a JavaFX frontend for the client.
This distributed system is built on a server-client architecture where the server manages the game board,
and clients communicate with the server via sockets.

image


Start Playing Right Away

Download the following files and run them via:

java -jar <jar_name>

Client: Connect4Client_WINDOWS.jar or Connect4Client_MACOS.jar
Server: Connect4Server.jar


Table of Contents

Prerequisites

Before you can run the Connect 4 application, you need to have the following software installed on your machine:

  • Java Development Kit (JDK) 17 or later
  • Apache Maven 3.9.4 or later
  • optional: JavaFX Runtime

Usage

Clone this repository:

git clone https://github.com/DT1337/Connect-4 && cd Connect-4

Client

Running the Client with Maven

cd Connect4Client && mvn clean javafx:run

Running the Client JAR

  1. Build the JAR using Maven:
cd Connect4Client && mvn clean package
  1. Run the JAR file:
java -jar target/Connect4Client-1.0-SNAPSHOT.jar

Server

Running the Server JAR

  1. Build the JAR using Maven:
cd Connect4Server && mvn clean package
  1. Run the JAR file:
java -jar target/Connect4Server-1.0-SNAPSHOT.jar