Implementing QuizSession
Let's finish making our second GenServer.
We'll cover the following...
We'll cover the following...
Answering a question
Now, a user can start a quiz with a start_link and a call to :select_question. What remains is to answer a question. We’ll enter them in lib/mastery/boundary/quiz_session.ex:
-
This function calls
answer_questionto answer the question and then advance the quiz. -
It returns the presentation data that we will need later to show to the user the ...