Currently, though isNewBestStreak is incorporated into the responseEval function, the boolean it returns is not correct. isNewBestStreak should only be true when a player's currentStreak is one greater than their previous best streak.
To achieve this, it's possible that a value like previousBestStreak will need to be introduced, and that isNewBestStreak should only be true when its value is one greater than previousBestStreak, which will get updated when currentStreak surpasses it in value.
Currently, though
isNewBestStreak
is incorporated into theresponseEval
function, the boolean it returns is not correct.isNewBestStreak
should only be true when a player'scurrentStreak
is one greater than their previous best streak.To achieve this, it's possible that a value like
previousBestStreak
will need to be introduced, and thatisNewBestStreak
should only betrue
when its value is one greater thanpreviousBestStreak
, which will get updated whencurrentStreak
surpasses it in value.