getMinGuesses function
Implementation
double getMinGuesses(Match match, String password) {
double minGuesses = 1;
if (match.token.length < password.length) {
if (match.token.length == 1) {
minGuesses = MIN_SUBMATCH_GUESSES_SINGLE_CHAR;
} else {
minGuesses = MIN_SUBMATCH_GUESSES_MULTI_CHAR;
}
}
return minGuesses;
}