Suppose in a game like a racing game, you earn points for certain activities and lose points for certain activities. Example: you earn points every time you dodge an obstacle and you lose points every time you stumble over an obstacle. You…