Description (five sentences max.)
After all cards are played the "stich" get´s passed to the player who won it. I want to be able to determine who this player is.
Possible implementation
The cards order property already expresses which card wins against which card. Hence, after determining whether or not it is a trump "stich" one can use that order to determine which user won the round.
Acceptance Criteria
When passed a Table (four cards in played order with the user who played them attached), the function returns the user who won that round
Out of Scope
passing information to the frontend
Document optional improvements
Add a function which calculates the points won in that round
Description (five sentences max.) After all cards are played the "stich" get´s passed to the player who won it. I want to be able to determine who this player is.
Possible implementation The cards
order
property already expresses which card wins against which card. Hence, after determining whether or not it is a trump "stich" one can use that order to determine which user won the round.Acceptance Criteria
Table
(four cards in played order with the user who played them attached), the function returns the user who won that roundOut of Scope
Document optional improvements