make exclamation marks harder to get

This commit is contained in:
mehbark 2023-03-29 21:20:49 -04:00
parent 237ee90024
commit dc20279d02
2 changed files with 4 additions and 4 deletions

View file

@ -708,8 +708,8 @@ function append_players_to(n) {
var wins = 0;
// extraordinarily necessary
function wins_exclamation_marks() {
let wins_divided_by_ten = Math.floor(wins / 10);
return wins_divided_by_ten > 0 ? "!".repeat(wins_divided_by_ten) : ".";
let base_10_log_of_tens = Math.floor(Math.log10(wins));
return base_10_log_of_tens > 0 ? "!".repeat(base_10_log_of_tens) : ".";
}
var in_game_over = false;
// ERROR: !

View file

@ -859,8 +859,8 @@ function append_players_to(n: Node) {
var wins = 0;
// extraordinarily necessary
function wins_exclamation_marks() {
let wins_divided_by_ten = Math.floor(wins / 10);
return wins_divided_by_ten > 0 ? "!".repeat(wins_divided_by_ten) : ".";
let base_10_log_of_tens = Math.floor(Math.log10(wins));
return base_10_log_of_tens > 0 ? "!".repeat(base_10_log_of_tens) : ".";
}
var in_game_over = false;