Hey guys i'm working on a game using enumerations as my game states, for some reason this does not work,look at my exit statement, for some reason setting it to exit does not stop the loop.
The things you define in an enum are not variables, they're definitions. What you want is a new variable that you set to different values based on those definitions. See currentGameState in the following code: