asharif123 / quiz_maker

Create a quiz asking user to add a list of questions, answers and ability to select correct answer.
0 stars 0 forks source link

How about creating a method for getting and validatting the indexOfAssignedCorrectAnswer #18

Closed AlexKap23 closed 7 months ago

AlexKap23 commented 7 months ago

https://github.com/asharif123/quiz_maker/blob/f2f9ea317fad8b1e1d4bb1ec69101860d467cdd4/UIMethods.cs#L118-L138

You can create a new method that will get the input and validate it in order to be in spec. After validating this method can return back the indexOfAssignedCorrectAnswer in order to be used by the CreateListOfQuizCards.

asharif123 commented 7 months ago

fixed issue #18 by creating a method to get the index of the correct answer