-
Notifications
You must be signed in to change notification settings - Fork 58
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.
- Open your chess project directory.
- Copy the contents of the
starter-code/6-gameplay/passoff/serverfolder into your project’sserver/src/test/java/passoff/serverfolder. TheWebSocketTests.javafile contains the pass off test cases that verify your server’s websocket interactions with clients. TheTestFactory.javafile contains necessary helper methods for you run and debug the web socket tests effectively. - Copy the
starter-code/6-gameplay/websocketfolder into your project’sshared/src/main/javafolder. This folder contains theUserGameCommandandServerMessagesuperclasses 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.javaInstall 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