DUGW4Q4WJ5JJ7UFWLOAWFHUJAPF5O3M3HM2GQFHYWFIBFVP462GQC
fn write_score(base: &mut String, name: &String, value: i64) {
let _ = write!(base, "- {}: {} ", name, value);
let sym = match value {
_ if value > 0 => "🔆",
_ if value < 0 => "❌",
_ => "",
};
let react: String = std::iter::repeat(sym)
.take(value.abs() as usize)
.take(10)
.collect();
let _ = write!(base, "{}\n", react);
}