Handbook
Glossary
choices ( cell -- seq )
Vocabulary
maze
Inputs
cell
an
object
Outputs
seq
an
object
Definition
USING:
kernel
math.vectors
sequences
;
IN:
maze
:
choices
( cell -- seq )
{
{
-1 0
}
{
1 0
}
{
0 -1
}
{
0 1
}
}
[
v+
]
with
map
[
unvisited?
]
filter
;