Parents: | rosetta-code |
Class | Superclass | Slots |
bull | tuple | |
cow | tuple | |
score | tuple | bulls cows |
Word | Stack 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 | ( -- ) |
Word | Stack effect |
bull? | ( object -- ? ) |
cow? | ( object -- ? ) |
score? | ( object -- ? ) |