Skip to content

Commit

Permalink
Make #1 a little more demanding
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Dec 11, 2023
1 parent 60c4467 commit 0609549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/results_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ fn enter_results_screen(
{
const SUBMISSIONS: f64 = 83.0;
const LO: f64 = 1.5;
const HI: f64 = 4.5;
const HI: f64 = 4.9;
// Clamp score to the interval [LO, HI] and then linearly map to the interval [1, SUBMISSIONS]
let rank = (1.0 - (score.clamp(LO, HI) - LO) / (HI - LO)) * (SUBMISSIONS - 1.0) + 1.0;

Expand Down

0 comments on commit 0609549

Please sign in to comment.