You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A multiplayer chess game built using Java, with a focus on real-time gameplay using WebSockets, HTTP, MYSQL.
Overview
This project consists of a client and server implementation, allowing multiple players to engage in a game of chess over the web. The game uses WebSockets to establish a real-time connection between clients and the server, enabling seamless communication and gameplay.networking using HTTP and WebSocket, database persistence, unit testing, serialization, and security.
Multiplayer chess gameplay over the web using WebSockets
Real-time updates and communication between clients and server
Support for multiple games and players
Simple text-based user interface for easy gameplay
Advanced technologies:
Networking using HTTP and WebSocket
Database persistence for game state and player data
Unit testing for robustness and reliability
Serialization for efficient data transmission
Security measures to protect player data and prevent cheating
IntelliJ Support
Open the project directory in IntelliJ in order to develop, run, and debug your code using an IDE.
Maven Support
You can use the following commands to build, test, package, and run your code.
Command
Description
mvn compile
Builds the code
mvn package
Run the tests and build an Uber jar file
mvn package -DskipTests
Build an Uber jar file
mvn install
Installs the packages into the local repository
mvn test
Run all the tests
mvn -pl shared tests
Run all the shared tests
mvn -pl client exec:java
Build and run the client Main
mvn -pl server exec:java
Build and run the server Main
These commands are configured by the pom.xml (Project Object Model) files. There is a POM file in the root of the project, and one in each of the modules. The root POM defines any global dependencies and references the module POM files.
Running the program using Java
Once you have compiled your project into an uber jar, you can execute it with the following command.