New extension: Teamplay
Situation
If you want to play a game with 3 or 4 players, all clients and the server will have to support this. This is the additional requirement 'team-play' from the project manual. This means that a flag should be communicated with the ANNOUNCE
(if the client support this feature) and WELCOME
(if the server supports this feature) message. At this moment, this flag is still undefined.
Proposed Solution
Defining the flag for 'team-play' to be TEAMPLAY
, so that clients and server can communicate their support for this feature to each other.
Please let me know whether you think this is a suitable solution, and feel free to suggest any alternatives you might think of. Since the project is due relatively soon, I would like to close this issue within 24h (15:00, 26-01-2022).
Example
An example sequence diagram for a situation where two clients and the server support team-play is shown below. In this example, a third client does not support team-play. They can still join the server, but since they do not support team-play they can't join the 4-player game queue. In case of a server without multi-game and/or lobby support, I suggest they receive the error message as described in issue #1. If the server does support multi-game, a new game queue can be started, where client C waits for a second player. NOTE: In this sequence diagram, the multi-game support of the server is not communicated, because this is only supported in one of the two example cases. Of course, in the case where this is supported, this should have been communicated as an extra flag by the server in all its WELCOME
messages.