brandonshawfhl / Quiz-Maker

0 stars 0 forks source link

Espially first while loop makes no sense? #7

Closed mayisa87 closed 10 months ago

mayisa87 commented 10 months ago

https://github.com/brandonshawfhl/Quiz-Maker/blob/218bd803462849693a3d4dd87d132ad66a5b04c7/ConsoleApp3/Program.cs#L14-L17

Your first while loop asks for quizAction and checks if it is still MAKE_CHOICE, but the variable quizAction is never changed at all? I think would you would rather need here an if statement to check if the quizAction is MAKE_CHOICE and then execute the while loop.

In general I'm not sure if you already defined all of your logic, so take some time and sit down to think about, what can be user do. Can he/she only load and save? Means loading = playing? And if the user loads/plays it means something completely different than creating a quiz.

So better always first sit down, take a sheet of paper, write down how you imagine the logic of you application and then implement it step by step.