Handbook
Glossary
score-to-answer ( score -- str )
Vocabulary
rosetta-code
.
bulls-and-cows
Inputs
score
an
object
Outputs
str
an
object
Definition
USING:
accessors
kernel
math.parser
sequences
;
IN:
rosetta-code.bulls-and-cows
:
score-to-answer
( score -- str )
[
bulls>>
number>string
"Bulls: "
prepend
]
[
cows>>
number>string
" Cows: "
prepend
]
bi
"\n"
glue
;