huzefa/turbo-tribble

The difficulty level needs to be smoothed out.

Closed this issue · 4 comments

We could use a decaying function to smooth it out from a set number (say 100?).

Consider using the following function where X is the initial number.

f(X) = Ceiling(X * e^(-0.1))

Lets assume we start at 100. We can change the level every button press instead of every 3 presses like it is now.

The next couple of numbers are 91, 83, 76, 69, 63, 58, 53.....and so on.

By the 8th button press or when the score is 8, the time given to the user is 5.3 s as compared to 10s for the first button.

@Dpatelloo Please check difficulty and close if appropriate. If changes need to still be made, we can discuss it further.

This new method yields a high score of 74 on my phone. As of PR #14 we can now see the score on the right.

Another thing we could do is have a set countdown timer and just let the users get as many mosquitoes as possible. That way we don't need to deal with the difficulty levels.