new lociSearcher(numOfLoci, notfoundMsg)
Constructor for a new Loci Searcher
Parameters:
Name | Type | Description |
---|---|---|
numOfLoci |
Number | |
notfoundMsg |
String | The string when the number of Loci is incorret in an answer. |
- Source:
Methods
-
<protected> search(answer,) → {String}
-
Searches an answer, counting the number of Loci present and returns either the notFoundMsg, if the number found in the answer is not the same as the Loci in the answer or the empty string if it is.
Parameters:
Name Type Description answer,
String the input to test - Source:
Returns:
the empty or not found string.- Type
- String