Handbook
Glossary
opposite-dir ( dir -- dir )
Vocabulary
snake-game
.
game
Inputs
dir
an
object
Outputs
dir
an
object
Definition
USING:
assocs
;
IN:
snake-game.game
:
opposite-dir
( dir -- dir )
H{
{
:up
:down
}
{
:down
:up
}
{
:right
:left
}
{
:left
:right
}
}
at
;