Respuesta :

The function given is not a good candidate to be placed in a library because the  person that created the library is trying to update the  global variables for both player1Points and player2Points.

Function

The function is not a good candidate to be placed in a library reason being that the person that created the library is trying to update the  global variables for both player1 and player2.

Reason being that this update is often carried out inside of a function, and the updated scores for player1 and player2 won't be kept except someone creates the global variables player1Points and player2Points in their own program.

Inconclusion the function given is not a good candidate to be placed in a library.

Learn more about function here:https://brainly.com/question/10439235

ACCESS MORE
EDU ACCESS
Universidad de Mexico