I am playing 2048 Numberwang. Sometimes the game proclaims:
Is it possible to know exactly when it is Numberwang?
Arqade is a question and answer site for passionate videogamers on all platforms. It only takes a minute to sign up.
Sign up to join this communityI am playing 2048 Numberwang. Sometimes the game proclaims:
Is it possible to know exactly when it is Numberwang?
"That's Numberwang!" is a random message displayed 10% of the time during score update if your score for that turn is greater than 8:
The relevant code is in html_actuator.js
:
function HTMLActuator() {
...
this.thatsNumberwang = document.querySelector(".thats-numberwang");
...
}
...
HTMLActuator.prototype.updateScore = function (score) {
...
if (Math.random() > 0.9 && score > 8) {
this.showMessage()
}
...
};
...
HTMLActuator.prototype.showMessage = function (message) {
message = message || "That's Numberwang!";
var announce = document.createElement("p");
announce.classList.add("show-numberwang");
announce.textContent = message;
this.thatsNumberwang.appendChild(announce);
};
Every turn the site contacts Colosson to determine whether or not it is Numberwang. The result is relayed safely back to the user, to avoid further incident.
Math.random()
to make the necessary telegraph to Colosson. Since @Feichinger's answer doesn't explicitly specify whether this is the case, this is a feasible answer.
From the site:
When two tiles touch, that’s Numberwang!
However, since the proclamation does not happen on every turn, best guess is it, like everything else in that game, is random.
"That's" Numberwang" in all winning scenarios that are not Wangernum