João Paulo Pesce renamed untitled.tex to 1.tex  about 10 years ago

Commit id: a654ddd1d71b2d74c565cb69fc13b022ae7ce7f6

deletions | additions      

         

We need a formula that, given the distance of the player's answer and the point shown, returns a score from 0 to 100 that (ideally) reflects the user's knowledge of the city.     We start with the premise that, if the user is really close to the right place, he should not be penalized a lot. In the same sense, it gets to a point that if his answer is far away or even farther way, there's little difference in his knowledge of the place.     For example, if an answer is 10 or 20 meters away from the right place, the player should get very similar scores. And if the answer is 3000 meters of 3500 meters away he should also get very similar scores, even thought the same difference of 500 meters in the other situation would make a huge difference.     So we come up with the following sigmoid function, where $S$ is the score and $d$ the distance between the right place and the player's answer:     \begin{equation}   S = \frac{100}{1+{d^4}}   \end{equation}