draw_question: Draw a Question from a wordquiz

View source: R/wordquiz.R

draw_questionR Documentation

Draw a Question from a wordquiz

Description

Draw a question from a quiz.

Usage

draw_question(quiz, wl, previous = NULL)

Arguments

quiz

the wordquiz object from which the question is drawn.

wl

the wordlist object on which the quiz is based.

previous

the wordquestion object that was queried last. If at least two words are left in the quiz, this question will not be drawn. This can be used to avoid asking the same question multiple times in a row.

Details

One of the questions in the quiz is selected based on the weights that are computed in prepare_quiz.

Value

a wordquestion object


stibu81/WordBox documentation built on Nov. 28, 2024, 2:29 p.m.