2 |
- |
1 |
If you click with mouse button 1
|
|
|
2 |
on a (destination) square then the following may happen.
|
|
|
3 |
|
|
|
4 |
If
|
|
|
5 |
- the destination square is on the same row or column as glenda, and
|
|
|
6 |
- there is a ball next to glenda
|
|
|
7 |
(in the direction of the destination square), and
|
|
|
8 |
- all squares between the ball and the destination square
|
|
|
9 |
(where glenda will move) are empty, and
|
|
|
10 |
- the square next to the destination square where glenda will
|
|
|
11 |
push the ball is empty too,
|
|
|
12 |
then glenda will move to the destination square, pushing the
|
|
|
13 |
ball while moving.
|
|
|
14 |
|
|
|
15 |
Otherwise, if glenda can go to the destination square
|
|
|
16 |
without touching anything, it will do so.
|
|
|
17 |
|
|
|
18 |
Otherwise, nothing will happen.
|
|
|
19 |
|
|
|
20 |
The breadth-first search algorithm should find a fast route.
|
|
|
21 |
it can be seen in action by toggling the 'animate'
|
|
|
22 |
entry in the button 3 menu.
|