Skip to content

Getting Started ‐ Phase 6

GitHub Action edited this page Aug 12, 2025 · 2 revisions

The Starter Code has 2 folders, server and websocket. Complete the following steps to move the starter code into your project for this phase.

  1. Open your chess project directory.
  2. Copy the contents of the starter-code/6-gameplay/passoff/server folder into your project’s server/src/test/java/passoff/server folder. The WebSocketTests.java file contains the pass off test cases that verify your server’s websocket interactions with clients. The TestFactory.java file contains necessary helper methods for you run and debug the web socket tests effectively.
  3. Copy the starter-code/6-gameplay/websocket folder into your project’s shared/src/main/java folder. This folder contains the UserGameCommand and ServerMessage superclasses for the websocket message classes you will create.

This should result in the following additions to your project.

├── server
│   └── src
│       └── test
│           └── java
│               └── passoff
│                   └── server
│                       ├── WebSocketTests.java
│                       └── TestFactory.java
└── shared
    └── src
        └── main
            └── java
                └── websocket
                    ├── messages
                    │   └── ServerMessage.java
                    └── commands
                        └── UserGameCommand.java

Dependencies

Install the following library from Maven and add a dependency to the client and server modules.

  • org.glassfish.tyrus.bundles:tyrus-standalone-client:2.1.4
    • Scope: Compile

Clone this wiki locally