calculates accuracy and rank for osu!
rank_legacy uses old hit-ratio based ranks
// https://osu.ppy.sh/scores/1597034515 const hit300 = 232; const hit100 = 23; const hit50 = 0; const miss = 0; const calc = standard(hit300, hit100, hit50, miss); /** * => { * accuracy: 93.98 * rank_legacy: 'S' * rank: 'A' * } */ Copy
// https://osu.ppy.sh/scores/1597034515 const hit300 = 232; const hit100 = 23; const hit50 = 0; const miss = 0; const calc = standard(hit300, hit100, hit50, miss); /** * => { * accuracy: 93.98 * rank_legacy: 'S' * rank: 'A' * } */
calculates accuracy and rank for osu!
rank_legacy uses old hit-ratio based ranks
Example