Description:
This is the first thing the player will see when they run the quiz program. You've got to make it a great first impression! Pull out all the stops and design the screen to look impressive. Give players good context for what actions they can take. And when they hit a button, if that is one of the valid commands, send that character back to main. The rest is for you to figure out.
Prototype: char menu(void);
Requirements:
1) Clear screen
2) Display a welcome screen
a) Include name of the game
b) Include list of user options:
~ Start game = 's'
~ View high score = 'v'
~ See help screen = 'h'
~ Exit program = 'q'
3) Read user input and return a valid input character
You can use printf() if you want, or talk with Khris about his putstr().
You can sometimes avoid using an else if you're already looping around. Just one if check is enough in some cases.
Watch out for how adding extra characters as input in the Welcome screen affects the later scanf command. Khris had a similar issue. Check with him to find out a way to solve it.
Great conversation, thank you!
Description: This is the first thing the player will see when they run the quiz program. You've got to make it a great first impression! Pull out all the stops and design the screen to look impressive. Give players good context for what actions they can take. And when they hit a button, if that is one of the valid commands, send that character back to main. The rest is for you to figure out.
Prototype: char menu(void);
Requirements: 1) Clear screen 2) Display a welcome screen a) Include name of the game b) Include list of user options: ~ Start game = 's' ~ View high score = 'v' ~ See help screen = 'h' ~ Exit program = 'q' 3) Read user input and return a valid input character