Const confusing

You said that a const can’t be changed, but how is it going to work in IsGameWon, since is game won can either be true or false?

NM From a post further down, IsGameWon is a function that doesn’t change anything within itself, the boolean is set outside of the function. Makes more sense now.

Privacy & Terms