I am trying to figure out how I can calculate something based on a few variables.
We have:
1. Max points = 20 points.
2. Minimum points = 1 point.
3. Jumps required to complete challenge and achieve max points = 4 jumps.
Now lets say the player completes the challenge with just 2 jumps. He gets 20 points because that's the maximum he can get. Now lets say he completes the challenge in 8 jumps. He gets 10 points because he completed the challenge with double the required jumps so he gets half the max points. If he completes the challenge in a million jumps, he gets 1 point, that's the minimum he can get.
Here's my question, what if the player completes the challenge in 5 or 6 or ..etc jumps? Is there a math term or equation for what I'm trying to achieve? It might sound basic to some of you but I've never been the brightest when it comes to maths.