Module: winner

Methods

(inner) compileWinner(winner) → {string}

Join addEnding call with decorate
Parameters:
Name Type Description
winner undefined | string winner name from returnWinner
Source:
See:
  • returnWinner
Returns:
- result of winner computing
Type
string

(inner) returnWinner() → {undefined|string}

Return raw position with max cost
Source:
Returns:
- if !cost - undefined, if !name - null, if name && cost - string
Type
undefined | string

(inner) showWinner(resultopt)

Open modal window with winner result
Parameters:
Name Type Attributes Description
result string <optional>
ready compiled winner to show
Source: