Guess Behaviour on too large inputs

The project description states:
image

It seems like the behaviour for too large inputs should be somehow defined. Does this mean we should somehow catch this case and react to it with "Invalid word. Try again: "?

1 Like

The first sentence answers your question: “A guess is valid if it is in the dictionary.” Words of length >k are not in the dictionary. Hence, you should catch them.

Best,
Tim

3 Likes

So, if I understand correctly, we should not exit(EXIT_FAILURE) if a len(input) > k is given?
Directly related to this a second question: can we use functions like strlen() to compare with k?
(It requires the string library.)

Thanks in advance!

1 Like