Possible Const Functions

Looking at the code we have currently, the IsGameWon and CheckGuessValidity functions are possible choices to get the Const added to them. In the current iteration of the code and variables they would be checking things vs updating values,

I think I’d agree with IsGameWon…I’m just wondering that if the game closes after completion, is there any point in the const? I also think the CheckGuessValidity is a const candidate maybe to prevent hacking. I’m hardwired to think const locks up integers though…so I’m still a little shaky

Privacy & Terms