Other methods to make const

I think, of the other methods we have, the one that makes the most sense to turn into a const is “IsGameWon”. Since CheckGuessValidity() will be taking in a string it seems that it would be difficult to code that in a way such that we can use const. There is a possibility of adding it to Reset() as well, but since that will be resetting various things I would be surprised if we could avoid changing variables with it.

3 Likes

I didn’t notice that “IsGameWon()” could use const aswell. Thanks for showing it :smiley:

1 Like

Privacy & Terms