From 95499d7ae6483268fb2a2ff8914e3ae6293e436d Mon Sep 17 00:00:00 2001 From: mehbark Date: Wed, 29 Mar 2023 22:15:25 -0400 Subject: [PATCH] stupid variable name fix --- main.js | 4 ++-- main.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index e62683b..f93fed3 100644 --- a/main.js +++ b/main.js @@ -708,8 +708,8 @@ function append_players_to(n) { var wins = 0; // extraordinarily necessary function wins_exclamation_marks() { - let base_10_log_of_tens = Math.floor(Math.log10(wins)); - return base_10_log_of_tens > 0 ? "!".repeat(base_10_log_of_tens) : "."; + let base_10_log_of_wins = Math.floor(Math.log10(wins)); + return base_10_log_of_wins > 0 ? "!".repeat(base_10_log_of_wins) : "."; } var in_game_over = false; // ERROR: ! diff --git a/main.ts b/main.ts index 5c911d6..8c369ec 100644 --- a/main.ts +++ b/main.ts @@ -859,8 +859,8 @@ function append_players_to(n: Node) { var wins = 0; // extraordinarily necessary function wins_exclamation_marks() { - let base_10_log_of_tens = Math.floor(Math.log10(wins)); - return base_10_log_of_tens > 0 ? "!".repeat(base_10_log_of_tens) : "."; + let base_10_log_of_wins = Math.floor(Math.log10(wins)); + return base_10_log_of_wins > 0 ? "!".repeat(base_10_log_of_wins) : "."; } var in_game_over = false;