Handbook
Glossary
snake-occupied-locs ( snake head-loc -- points )
Vocabulary
snake-game
.
game
Inputs
snake
an
object
head-loc
an
object
Outputs
points
an
object
Definition
USING:
accessors
kernel
sequences
;
IN:
snake-game.game
:
snake-occupied-locs
( snake head-loc -- points )
[
dir>>
move-loc
]
accumulate
nip
;