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