WOLFRAM
|
DEMONSTRATIONS PROJECT
Mazes on a Cylinder or Torus
c
y
l
i
n
d
e
r
t
o
r
u
s
e
p
i
c
y
c
l
o
i
d
h
y
p
o
c
y
c
l
o
i
d
a
n
n
u
l
u
s
r
a
d
i
a
l
d
i
v
i
s
i
o
n
s
6
7
8
9
1
0
1
1
1
2
c
o
n
c
e
n
t
r
i
c
d
i
v
i
s
i
o
n
s
4
5
6
7
s
h
o
w
s
o
l
u
t
i
o
n
n
e
w
m
a
z
e
S
e
l
e
c
t
F
i
r
s
t
:
:
s
h
d
w
:
S
y
m
b
o
l
S
e
l
e
c
t
F
i
r
s
t
a
p
p
e
a
r
s
i
n
m
u
l
t
i
p
l
e
c
o
n
t
e
x
t
s
{
N
o
t
e
b
o
o
k
$
$
1
7
$
5
0
6
4
1
9
`
,
S
y
s
t
e
m
`
}
;
d
e
f
i
n
i
t
i
o
n
s
i
n
c
o
n
t
e
x
t
N
o
t
e
b
o
o
k
$
$
1
7
$
5
0
6
4
1
9
`
m
a
y
s
h
a
d
o
w
o
r
b
e
s
h
a
d
o
w
e
d
b
y
o
t
h
e
r
d
e
f
i
n
i
t
i
o
n
s
.
F
i
n
d
t
h
e
s
h
o
r
t
e
s
t
p
a
t
h
f
r
o
m
t
h
e
b
l
a
c
k
d
o
t
t
o
t
h
e
g
r
a
y
d
o
t
w
i
t
h
o
u
t
c
r
o
s
s
i
n
g
a
n
y
r
e
d
b
a
r
r
i
e
r
.
I
n
t
h
e
t
o
r
u
s
c
a
s
e
,
t
h
e
c
e
n
t
e
r
r
e
g
i
o
n
i
s
c
o
n
n
e
c
t
e
d
t
o
t
h
e
o
u
t
s
i
d
e
.