I've updated the 8-queens puzzle and fileselect STk demos so that they work
with 3.0b2. They're in the incoming directory on kaolin.unice.fr:
queens.tar.gz
The 8-queens puzzle where you try to place 8 queens on a chess-board so
that none of the queens can take any of the others in a single move. The
program will let you try to solve the puzzle (making sure that you follow
the rules), or it will solve it starting either with an empty board or a
partial solution. If I do say so myself, it's a neat little program that
demonstrates the use of continuations and is a classic example of
recursive, depth-first search of a solution space. [and people thought
all that tuition money was wasted...]
fileselect.tar.gz.
A simple (but useful) fileselect box for STk programs that does the usual
things:
- Displays a scrollable list of the files in the current directory.
- Allows the user to navigate around by double-clicking on
directories.
- Filters the files in the current directory when the user
enters a string containing expandable wild-card characters.
- Queries the user for permission to overwrite an existing file.
- Verifies read or write privileges for the selected file, notifying
the user of any problems.
- Notifies the user of any errors that occur when it optionally opens
the file.
- Returns the selected pathname (and optionally the opened port)
to the calling program.
--
Grant Edwards
Rosemount Inc.
grante_at_rosemount.com
Received on Sun Jan 28 1996 - 07:06:09 CET