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
This project demonstrates mastery of proper software design, client/server architecture, networking using HTTP and WebSocket, database persistence, unit testing, serialization, and security.
10k Architecture Overview
The application implements a multiplayer chess server and a command line chess client.
Modules
The application has three modules.
Client: The command line program used to play a game of chess over the network.
Server: The command line program that listens for network requests from the client and manages users and games.
Shared: Code that is used by both the client and the server. This includes the rules of chess and tracking the state of a game.
Starter Code
As you create your chess application you will move through specific phases of development. This starts with implementing the moves of chess and finishes with sending game moves over the network between your client and server. You will start each phase by copying course provided starter-code for that phase into the source code of the project. Do not copy a phases' starter code before you are ready to begin work on that phase.
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 test
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.