From 63037a78c3e8ca2658dc69c9052de50c89d60501 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Wed, 16 Dec 2020 18:05:00 -0700 Subject: [PATCH] Add docs for NewHand --- server/events.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/server/events.md b/server/events.md index bb62737..54288f1 100644 --- a/server/events.md +++ b/server/events.md @@ -177,6 +177,25 @@ This event cannot be requested by the clients.

--- +# `NewHand`: + +## Description: +This is the event client sends it requests a new 7 cards for the hand. + +## Request Payload: +| Property | Type | Description +| -------- | ---- | ----------- +| team | Integer | The team that is requesting a new hand. + +## Response Payload: (`NewHand`) +| Property | Type | Description +| -------- | ---- | ----------- +| by | String | The name of the player that triggered the `NewHand` event. +| cards | String[] | An array containing all of the new cards for the team. + +

+--- + # ``: ## Description: