Candidates for const functions

i personally think that other than the get functions, the “IsGameWon()” function could also be made const as its checking if the win conditions have been met, so it probably would only retrieve a boolean variable that was modified by a separate method, but not by the “IsGameWon()” method itself.

2 Likes

i think IsGameWon() should not have a const because it’s a bool type function and we need both “not constant” value false and true, i might be wrong tho

1 Like

i think IsGameWon() should not have a const because it’s a bool type function and we need both “not constant” value false and true, i might be wrong tho

I agree with Ed_Horsh on this one, as IsGameWon() is gonna have to change depending on the result.

Privacy & Terms