hedwig_trivia v0.1.0 HedwigTrivia.Answer View Source

Logic surrounding determining if the supplied answer is correct

Link to this section Summary

Functions

Is the supplied answer close enough to the answer from the API?

Link to this section Functions

Link to this function

correct_or_close_enough?(answer, guess)

View Source
correct_or_close_enough?(String.t(), String.t()) :: boolean()

Is the supplied answer close enough to the answer from the API?