Add the banner. It should give the instructions before asking for a guess.

Guillermo Alcantara 2012-02-08 21:31:31 -08:00 committed by John Benediktsson
parent 74b1c8ba71
commit 7d2a473b3e
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ IN: numbers-game
dup guess-prompt read-number judge-guess
[ numbers-game-loop ] [ drop ] if ;
: numbers-game ( -- ) number-to-guess numbers-game-loop ;
: numbers-game ( -- )
guess-banner number-to-guess numbers-game-loop ;
MAIN: numbers-game