README 799 B

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