rosetta-code.bulls-and-cows vocabulary
Factor handbook ยป Vocabulary index


Summary

Metadata
Parents:rosetta-code


Words

Tuple classes
ClassSuperclassSlots
bull tuple
cow tuple
score tuplebulls cows


Ordinary words
WordStack effect
(validate-readln)( str -- ? )
<bull>( -- bull )
<cow>( -- cow )
<score>( -- score )
add-digits( seq -- n )
add-to-score( arr -- score )
bulls-and-cows-main( -- )
check-win( score -- ? )
cow-or-bull( n g -- arr )
inc-bulls( score -- score )
inc-cows( score -- score )
main-loop( x -- )
narr>nhash( narr -- nhash )
new-number( -- n narr )
num>hash( n -- hash )
random-nums( -- seq )
score-to-answer( score -- str )
sum-score( n g -- score ? )
validate-readln( -- str )
win( -- )


Class predicate words
WordStack effect
bull?( object -- ? )
cow?( object -- ? )
score?( object -- ? )


Files