Module: Frontend

Methods

(inner) addToHistory(str)

Function to add text to the history log.
Parameters:
Name Type Description
str string The string to display in the log.
Source:

(inner) alertModal(message)

Function to cause the alert modal to appear, with a message.
Parameters:
Name Type Description
message string Message to be displayed.
Source:

(inner) finishGame(result)

Function to trigger the game result modal.
Parameters:
Name Type Description
result boolean Game result.
Source:

(inner) getCurrentNumbers() → {Array.<number>}

Function to collect the numbers from the input fields.
Source:
Returns:
Type
Array.<number>

(inner) reloadGame()

Function to reload the game interface, based on current config.
Source:

(async, inner) submitNums()

Function to submit the chosen numbers to our backend.
Source:

(inner) validateConfig(conf) → {boolean}

Function to validate the user's current game settings.
Parameters:
Name Type Description
conf Object The config object to be checked.
Source:
Returns:
Type
boolean