Skip to content

Kapo1123/Terminal_ChessGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal Web Chess Game

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.

Architecture Diagram https://sequencediagram.org/index.html#initialData=IYYwLg9gTgBAwgGwJYFMB2YBQAHYUxIhK4YwDKKUAbpTngUSWDADIQDmSaF1hKmAuvkLFgpACIoEKMCh5U+A3MMZjmAcWABbOZQUh+QhqNIAlFJwDOYKMAIRuexcuNMY4u8ACCIA5csCACaeAEbAligwgSGCguxQEACu2DAAxGjAVACeMOZWNnZIDmkA7gAWSLKYiKikALQAfOR6lABcMADaAAoA8mQAKgC6MAD0iRFQADpoAN7jlBk6ADQwuP4l0IErKFrASAgAvpjylDCNuRZI1rb2jrwG7VCX1pQAFPNQiygra5YbUFsYDs9ggAJSYPJXAq3eR8M5NDxgby+FD+drsGQAVQm7wmX3BiORfks8KiIXaZAAoixKXB+jAPl8YAAzBJaBkTTCEnzEs7nSHXQoOWEPGBoRIIBAQ57Qop3fSRc7clFomAgJ52FDYt6M7TfVbhP6bAmeHmoknnaLtACSADkqaZ6brlgb1pttrt9jA7f0ehzaALZcKnAZScrie11ShNV5EmAyriFnqTUizf5SVbvfbKY7-Z89StgHGyv0IABrdBZ30wIvxrmmlUW-kym5ykUodq1kvl9DS-Kt4P3RXnE5QTvF0sVtDHFqwOrnGroMDtABMAAY19MZl3J+gjuhAgJ4kkUqloGIMawOFxShUqov6k1R+1un0hqMIv45Vvnfrfv9AiOUdSTYTh5T4doEGvNBE3zF1-2NTBQK4dt4XDc12jgMoUBAMs4CeQIlyQYAEFgr4lgQgEUyJc0M3JchqV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UAlJIT17RJWr44hbsAl1J9tkxsmFIF6K5gYrOYBFHKJMToU+xTnaxOngLdBkRT4oLQWVCAFUsEwHcS-HJVTl6ry8RkxpfByFhUof0x+RMQ5dJ2SgL+DCPqx3iMAHIiBoywGANgROhAhRoHTveLpaNxGeRpN5Xy0RqHix2m7QaUUSIIHEAAIXPj1NaoCJZAtkCC8FkKWrDIGm1GAAAqBZzT5oEKsatKK7Y1lQoJbtLZbQqmjhOocqppkgA

Key Features

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.

java -jar client/target/client-jar-with-dependencies.jar

♕ 240 Chess Client: chess.ChessPiece@7852e922

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages