correct? ( actual guess -- ? )


Vocabulary
numbers-game

Inputs
actualan object
guessan object


Outputs
?an object


Definition


: correct? ( actual guess -- ? )
<=> {
{ +lt+ [ "Too high" print flush f ] }
{ +eq+ [ "Correct - you win!" print flush t ] }
{ +gt+ [ "Too low" print flush f ] }
} case ;