Computer Science, asked by visheshjha, 6 months ago

Write a function, game, that takes two Team objects as parameters and returns the name of the winning team. Function specifications: • The function name: game • The function takes two parameters, both of the type Team. • The function returns the name of the winning team, as a string • To determine the winning team, add up the points associated with each team’s first 4 players. The team with more points is the winner. • If one or both of the teams do not have 4 or more players, your function should return “forfeit” • If the teams have the same total points, your function should return “draw” • The output of “forfeit” takes higher priority than “draw” in the sense that if a team doesn’t have enough players, a game cannot be played, so there could be no draw (for example, if both teams have no players, this would constitute a “forfeit”, not a draw).

Answers

Answered by vinaykumarshukla6
0

Answer:

hzgssyfd us a good night baby I was like what I said I iw

Explanation:

route for you to know you are

Similar questions