quiz vocabulary
Factor handbook ยป Vocabulary index


Summary

Metadata
Tags:demos
Authors:Doug Coleman


Words

Tuple classes
ClassSuperclassSlots
boolean-question question
boolean-response tuple
country-code-from-flag string-responsen
country-name-from-flag string-responsen
flag-from-country-code string-responsen
flag-from-country-name string-responsen
generator-needs-reponse-type tuplegenerator
math-multiplication number-responsecount n
math-sq number-responserandom-choices
math-sqrt number-responserandom-choices
multiple-choice-question questionn choices
number-question question
number-response tuple
question tuplegenerator generated answer response parsed-response correct?
stack-shuffler string-responsen-shufflers
state-capital string-response
string-question question
string-response tuple


Generic words
WordStack effect
>question( obj -- question )
ask-question( question -- )
check-response( question -- correct? )
generate-question( question -- )
generate-question*( question -- quot )
parse-response( input question -- answer )
run-multiple-choice-quiz( obj n -- questions )
run-quiz( obj -- questions )


Ordinary words
WordStack effect
<boolean-question>( generator -- question )
<multiple-choice-question>( generator n -- multiple-choice-question )
<number-question>( generator -- question )
<string-question>( generator -- question )
alphabet-zip( seq -- zip )
first-n-letters( n -- seq )
generator-needs-reponse-type( generator -- * )
run-country-code-from-flag-quiz( -- )
run-country-name-from-flag-quiz( -- )
run-flag-from-country-code-quiz( -- )
run-flag-from-country-name-quiz( -- )
run-math-quiz( -- )
run-one-question( question -- question/f )
run-shuffler-quiz( -- )
run-state-capital-quiz( -- )
score-question( question input -- question/f )
score-quiz( seq -- )
stack-shufflers( -- value )
state-capitals( -- value )
trim-blanks( seq -- seq' )


Class predicate words
WordStack effect
boolean-question?( object -- ? )
boolean-response?( object -- ? )
country-code-from-flag?( object -- ? )
country-name-from-flag?( object -- ? )
flag-from-country-code?( object -- ? )
flag-from-country-name?( object -- ? )
generator-needs-reponse-type?( object -- ? )
math-multiplication?( object -- ? )
math-sq?( object -- ? )
math-sqrt?( object -- ? )
multiple-choice-question?( object -- ? )
number-question?( object -- ? )
number-response?( object -- ? )
question?( object -- ? )
stack-shuffler?( object -- ? )
state-capital?( object -- ? )
string-question?( object -- ? )
string-response?( object -- ? )


Files


Metadata files