<<Previous | Fifteen Puzzle Extensions | Next>> | ||||||
Introduction
The puzzle The algorithm Program Design |
To solve a particular problem,
like the "15 Puzzle", we use and extend the more generalized
set of classes. The specific classes developed for the "15-puzzle" are:
To solve another problem domain all one needs is a similar set of classes. You need a class to represent the a current state and a method of computing a heuristic. Once you have these two, the search will be performed by the Searcher. Currently, the heuristic must be a positive integer. |
|