Class: ringsSearcher

ringsSearcher

new ringsSearcher(nm)

Searcher for rings.
Parameters:
Name Type Description
nm Number the number of rings from the question file.
Source:
Tutorials:

Extends

Methods

getfoundMsg() → {String}

Inherited From:
Source:
Returns:
Type
String

getNotFoundMsg() → {String}

Inherited From:
Source:
Returns:
Type
String

getRegExp() → {RegExp}

Inherited From:
Source:
Returns:
Type
RegExp

getRegExpString() → {String}

Inherited From:
Source:
Returns:
Type
String
override searcher#search. will return the approriate message from the question file.
Parameters:
Name Type Description
smileAnswer String The submitted SMILE string.
Source:

test(smileAnswer)

override searcher#test. will return true if the number of rings in the answer is equal to the number of rings in the question.
Parameters:
Name Type Description
smileAnswer
Source: