I have a similar question. While testing, I found out, that the user can input a string without newline character by pressing Ctrl+D instead of Enter. In my implementation of guess, a lot breaks, if there is no newline character.
Should we try to catch this somehow or can we always expect a newline character?
Ok, thanks for the answer!