1 <?xml version="1.0" encoding="ISO-8859-1"?>
3 <screensaver name="maze" _label="Maze">
9 <number id="delay" type="slider" arg="-solve-delay %"
10 _label="Frame rate" _low-label="Low" _high-label="High"
11 low="0" high="100000" default="10000"
14 <select id="generator">
15 <option id="mrandom" _label="Random maze generator"/>
16 <option id="m0" _label="Depth-first backtracking maze generator"
17 arg-set="-generator 0"/>
18 <option id="m1" _label="Wall-building maze generator (Prim)"
19 arg-set="-generator 1"/>
20 <option id="m2" _label="Set-joining maze generator (Kruskal)"
21 arg-set="-generator 2"/>
25 <select id="ignorance">
26 <option id="smart" _label="Head toward exit"/>
27 <option id="dumb" _label="Ignorant of exit direction"
34 <number id="grid-size" type="spinbutton" arg="-grid-size %"
35 _label="Grid size" low="0" high="100" default="0"/>
36 <boolean id="showfps" _label="Show frame rate" arg-set="-fps"/>
42 <number id="pre-delay" type="slider" arg="-pre-delay %"
43 _label="Linger before solving"
44 _low-label="0 seconds" _high-label="10 seconds"
45 low="0" high="10000000" default="2000000"/>
47 <number id="post-delay" type="slider" arg="-post-delay %"
48 _label="Linger after solving"
49 _low-label="0 seconds" _high-label="10 seconds"
50 low="0" high="10000000" default="4000000"/>
52 <xscreensaver-updater />
59 This generates random mazes, with three different algorithms: Kruskal,
60 Prim, and a depth-first recursive backtracker. It also solves them.
61 Backtracking and look-ahead paths are displayed in different colors.
63 http://en.wikipedia.org/wiki/Maze_generation_algorithm
64 http://en.wikipedia.org/wiki/Maze_solving_algorithm
66 Written by Martin Weiss, Dave Lemke, Jim Randell, Jamie Zawinski,
67 Johannes Keukelaar, and Zack Weinberg; 1985.