Const Function Thoughts

I’m not really sure how these functions will…well, function, but I kind of agree with others recommending “const” for all of them. However, one stands out a little in my mind and that is the IsGameWon function. It is returning only a bool but how it determines the game is won or not might rely on other variables from our program that we won’t want to modify if used as an argument. Or would we? I don’t know. This is fun!

Privacy & Terms