[Question] Why use GetHiddenWordLength?

I understand the reason for using a getter on it, but wouldnt it make more sense just to use make a getter for GetHiddenWord() const then using the returned value do a .length against it?

The only reason i could see not to was because you wanted to use an int32 so maybe thats the reason why?

Thanks.

I think the idea is to keep the Secret Word hidden. It is not something one would show a player.

The reason for making the length available is because the user needs to know what size isogram to guess.

Even though we are seeing the code, think of the FBullCowGame public interface as a model of what needs to be available to a player without ever revealing the secret.

Does that help?

Privacy & Terms