Functions that are Candidates

GetCurrentTry is a getter function so it should be a const. I believe both IsGameWon and CheckGuessValidity could be const provided the intended functionality is to strictly compare variables and not change them. If there is need to make some kind of change like an increment to a class variable then they will not be const (i.e. increment MyCurrentTry).

Privacy & Terms