\ sticks.f
\ After "23 Matches" in Ahl, _Basic Computer Games_
\ Ahl attributes the original to Bob Albrecht
cr .( Reading sticks.f)
\ random number generator
s" random.f" included
\ Rules of the game
: rules ( -- )
cr ." Sticks"
cr
cr ." The game starts with 23 sticks. "
." By turns, you and Forth take"
cr ." from 1 to 3 sticks. "
." Whoever takes the last stick loses."
cr
cr ." You take sticks by entering: n STICKS"
cr ." where n is 1, 2, or 3"
cr ;