Back

Version 2

9/19/2023
export function calc_qq_string(grade: number) {
const run = Math.floor(grade / 256);
const rest = (grade % 256).toString(4).split("").map(Number);
const [star, moon, sun, crown] = rest.reverse();
return `${"🏃".repeat(run)}${"👑".repeat(crown)}${"🌞".repeat(sun)}${
"🌙".repeat(moon)
}${"⭐".repeat(star)}`;
}
Updated: October 23, 2023