Add command PLAYER_CALL on server side #104

Closed
opened 2026-04-12 00:56:32 +02:00 by jona.walpert · 9 comments
jona.walpert commented 2026-04-12 00:56:32 +02:00 (Migrated from git.scicore.unibas.ch)

Task

The reccommended type is: Task

Summary

Add the PLAYER_Call command to allow a player to Call (match) a bet during an ongoing game

Context

Request, CommandParser, Response and CommandHandler

Current Progress

  • PlayerCallRequest
  • PlayerCallParser
  • PlayerCallResponse
  • PlayerCallHandler
  • Update protocol documentation
  • Write JavaDoc

Request

`CALL GAME_ID=1` (or `CALL` -- `GAME_ID` optional)

Response

+OK
END

Error Response

-ERR
  CODE=NOT_YOUR_TURN
  MSG=It is not your turn
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 Add the `PLAYER_Call` command to allow a player to Call (match) a bet during an ongoing game ### Context Request, CommandParser, Response and CommandHandler ### Current Progress * [x] PlayerCallRequest * [x] PlayerCallParser * [x] PlayerCallResponse * [x] PlayerCallHandler * [x] Update protocol documentation * [x] Write JavaDoc #### Request ``` `CALL GAME_ID=1` (or `CALL` -- `GAME_ID` optional) ``` #### Response ``` +OK END ``` #### Error Response ``` -ERR CODE=NOT_YOUR_TURN MSG=It is not your turn 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-12 00:56:32 +02:00 (Migrated from git.scicore.unibas.ch)

assigned to @jona.walpert

assigned to @jona.walpert
jona.walpert commented 2026-04-12 01:07:34 +02:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item PlayerCallRequest as completed

marked the checklist item **PlayerCallRequest** as completed
jona.walpert commented 2026-04-12 01:07:35 +02:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item PlayerCallParser as completed

marked the checklist item **PlayerCallParser** as completed
jona.walpert commented 2026-04-12 01:07:36 +02:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item PlayerCallResponse as completed

marked the checklist item **PlayerCallResponse** as completed
jona.walpert commented 2026-04-12 01:07:37 +02:00 (Migrated from git.scicore.unibas.ch)

marked the checklist item PlayerCallHandler as completed

marked the checklist item **PlayerCallHandler** as completed
jona.walpert commented 2026-04-12 01:07:38 +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 01:07:39 +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 01:07:44 +02:00 (Migrated from git.scicore.unibas.ch)

mentioned in merge request !112

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

mentioned in commit 6ee9c6c399

mentioned in commit 6ee9c6c3994c7a2d07b1279ef2a968efb90ee206
jona.walpert (Migrated from git.scicore.unibas.ch) closed this issue 2026-04-12 01:12:52 +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#104