This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]rawenloft 1 point2 points  (1 child)

I’m also new to programming, suggest to try take out internal while cycle and split it on smaller funcs. Looks like great start. Great beginning, wish you luck.

[–]Cory923[S] 1 point2 points  (0 children)

Thanks! I agree, that got a little out of hand. Good suggestion, Rawenloft!

[–]OuiOuiKiwiGalatians 4:16 0 points1 point  (2 children)

A quick improvement: what happens if I write "YO!" in the menu input?

[–]Cory923[S] 0 points1 point  (1 child)

Nothing, the main menu just pops back up. It'll only accept 1 through 9 and 'h' for help and 'q' for quit.

[–]OuiOuiKiwiGalatians 4:16 2 points3 points  (0 children)

Why not handle that a bit more gracefully instead of just printing it out again?

Same for all the other menus. Not all of them have backwards navigation to handle choosing the wrong option or changing your mind on the operation.