make exclamation marks harder to get
This commit is contained in:
parent
237ee90024
commit
dc20279d02
2 changed files with 4 additions and 4 deletions
4
main.js
4
main.js
|
@ -708,8 +708,8 @@ function append_players_to(n) {
|
||||||
var wins = 0;
|
var wins = 0;
|
||||||
// extraordinarily necessary
|
// extraordinarily necessary
|
||||||
function wins_exclamation_marks() {
|
function wins_exclamation_marks() {
|
||||||
let wins_divided_by_ten = Math.floor(wins / 10);
|
let base_10_log_of_tens = Math.floor(Math.log10(wins));
|
||||||
return wins_divided_by_ten > 0 ? "!".repeat(wins_divided_by_ten) : ".";
|
return base_10_log_of_tens > 0 ? "!".repeat(base_10_log_of_tens) : ".";
|
||||||
}
|
}
|
||||||
var in_game_over = false;
|
var in_game_over = false;
|
||||||
// ERROR: !
|
// ERROR: !
|
||||||
|
|
4
main.ts
4
main.ts
|
@ -859,8 +859,8 @@ function append_players_to(n: Node) {
|
||||||
var wins = 0;
|
var wins = 0;
|
||||||
// extraordinarily necessary
|
// extraordinarily necessary
|
||||||
function wins_exclamation_marks() {
|
function wins_exclamation_marks() {
|
||||||
let wins_divided_by_ten = Math.floor(wins / 10);
|
let base_10_log_of_tens = Math.floor(Math.log10(wins));
|
||||||
return wins_divided_by_ten > 0 ? "!".repeat(wins_divided_by_ten) : ".";
|
return base_10_log_of_tens > 0 ? "!".repeat(base_10_log_of_tens) : ".";
|
||||||
}
|
}
|
||||||
|
|
||||||
var in_game_over = false;
|
var in_game_over = false;
|
||||||
|
|
Loading…
Reference in a new issue