Hello, I am making a text-based game right now, and I have to ask a question. I am finding that I am using a lot of switch cases in my game. Such as those found in the tutorial on this site. It is getting really repetitive, making switch cases at every menu screen. Also, my program is becoming very long because of this. Are their any other ways to make an interface, or am I stuck with switch cases.
My program output is like this:
Note: This not my actual game menu , just an exampleCode:1. Play Game 2. Load Game 3. Exit Game
So how can I use this concept without using switchcases?
I don't know API or anything like that either.