Skip to content

Commit 2c9c0ab

Browse files
committed
add an even nicer curve for 600+ solve challenges
1 parent 0c8ffdf commit 2c9c0ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/util/scores.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
export const getScore = (rl: number, rh: number, maxSolves: number, solves: number): number => {
1414
const hardCurve = 428 * (0.995) ** solves + 75;
1515
const easyCurve = 428 * (0.9978) ** solves;
16-
return Math.round(Math.min(Math.max(hardCurve, easyCurve, rl), rh));
16+
const veryEasyCurve = -0.055 * solves + 150;
17+
return Math.round(Math.min(Math.max(hardCurve, easyCurve, veryEasyCurve, rl), rh));
1718
}

0 commit comments

Comments
 (0)