Add command CREATE_LOBBY #93

Closed
opened 2026-04-11 16:00:21 +02:00 by jona.walpert · 10 comments
jona.walpert commented 2026-04-11 16:00:21 +02:00 (Migrated from git.scicore.unibas.ch)

Task

The reccommended type is: Task

Summary

The CREATE_LOBBY command creates a new empty lobby. In the current implementation the request carries no parameters . The server allocates the next available small integer ID (range 1..8). If the server already manages the maximum number of lobbies, the command fails.

Context

Request, CommandParser, Response and CommandHandler. CreateLobbyHandler calls lobbyManager.createNewLobby(null) and returns the allocated numeric lobby id.

Current Progress

  • CreateLobbyRequest
  • CreateLobbyParser
  • CreateLobbyResponse
  • CreateLobbyHandler
  • Update protocol documentation
  • Write JavaDoc

Request

   CREATE_LOBBY

Response

  +OK
  LOBBY_ID=1
  END
END

Error example

-ERR
  CODE=LOBBIES_FULL
  MSG=Maximum number of 8 lobbies reached
END
END

Checklist

  • I outlined checkpoints describing phases of my work related to this task
  • I added relevant labels
  • I linked to other issues or branches that must be completed first
## Task The reccommended type is: Task ### Summary The `CREATE_LOBBY` command creates a new empty lobby. In the current implementation the request carries no parameters . The server allocates the next available small integer ID (range 1..8). If the server already manages the maximum number of lobbies, the command fails. ### Context Request, CommandParser, Response and CommandHandler. `CreateLobbyHandler` calls `lobbyManager.createNewLobby(null)` and returns the allocated numeric lobby id. ### Current Progress * [x] CreateLobbyRequest * [x] CreateLobbyParser * [x] CreateLobbyResponse * [x] CreateLobbyHandler * [x] Update protocol documentation * [x] Write JavaDoc #### Request ``` CREATE_LOBBY ``` #### Response ``` +OK LOBBY_ID=1 END END ``` #### **Error example** ``` -ERR CODE=LOBBIES_FULL MSG=Maximum number of 8 lobbies reached END END ``` ### Checklist * [x] I outlined checkpoints describing phases of my work related to this task * [x] I added relevant labels * [x] I linked to other issues or branches that must be completed first
jona.walpert commented 2026-04-11 16:00:21 +02:00 (Migrated from git.scicore.unibas.ch)

assigned to @jona.walpert

assigned to @jona.walpert
jona.walpert commented 2026-04-11 16:37:30 +02:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item CreateLobbyRequest as completed

marked the checklist item **CreateLobbyRequest** as completed
jona.walpert commented 2026-04-11 16:37:35 +02:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item CreateLobbyParser as completed

marked the checklist item **CreateLobbyParser** as completed
jona.walpert commented 2026-04-11 16:37:37 +02:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item CreateLobbyResponse as completed

marked the checklist item **CreateLobbyResponse** as completed
jona.walpert commented 2026-04-11 16:37:38 +02:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item CreateLobbyHandler as completed

marked the checklist item **CreateLobbyHandler** as completed
jona.walpert commented 2026-04-11 16:39:00 +02:00 (Migrated from git.scicore.unibas.ch)

mentioned in commit ca4283bbe7

mentioned in commit ca4283bbe7c01eabbff501e0138a322aa11170d2
jona.walpert commented 2026-04-12 12:04:13 +02:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item Update protocol documentation as completed

marked the checklist item **Update protocol documentation** as completed
jona.walpert commented 2026-04-12 12:04:24 +02:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item Write JavaDoc as completed

marked the checklist item **Write JavaDoc** as completed
jona.walpert commented 2026-04-12 12:04:51 +02:00 (Migrated from git.scicore.unibas.ch)

mentioned in merge request !117

mentioned in merge request !117
jona.walpert commented 2026-04-12 12:10:43 +02:00 (Migrated from git.scicore.unibas.ch)

mentioned in commit f5ee57454d

mentioned in commit f5ee57454d49a1b7e5acfcd042554609da74005c
jona.walpert (Migrated from git.scicore.unibas.ch) closed this issue 2026-04-12 12:10:43 +02:00
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: University-of-Basel-Studentprojects/Programmierprojekt#93