Tennis is played as singles or doubles. I considered making my tennis scoring model logic refer to "teams" throughout its naming since "player" wouldn't take into account doubles. However, seeing teamOne
and teamTwo
throughout the code to accommodate both modes seems awkward since a team of one person doesn't make sense and the sport is usually played as singles.
What would be a good way to reconcile this? I try to adhere to the Swift API Design Guidelines since it's the language I'm using. Maybe I'm bikeshedding and I should just go with teamOne
and teamTwo
even if it's imprecise?
contenders
. A way to refer the ppl who did participate in a match or championship regardless of their number. Anyways I think "doubles" is a "modality" of the game|match or the championship, So it would be a property of theMatch
or a "sort" ofMatch
– Laiv Jan 3 '20 at 12:48