Class RushHour
java.lang.Object
RushHour
- public class RushHour
- extends java.lang.Object
This class contains only a simple main for testing your algorithm
on data with one or more heuristics. The main begins by reading in
all of the puzzles described in a file named in argv[0].
It then proceeds to run A* using each heuristic listed below on
each of the puzzles (simply comment out any heuristics you don't
want to be testing on). In each case, it prints out the solution
path that was computed. Finally, it prints out a summary table of
the results. You may wish to modify or replace this main
in any way that you wish. (However, other classes that we have
provided should not be modified directly.)
Method Summary |
static void |
main(java.lang.String[] argv)
The main for running all puzzles with all heuristics, and
printing out all solution paths as well as a final summary
table. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RushHour
public RushHour()
main
public static void main(java.lang.String[] argv)
throws java.io.FileNotFoundException,
java.io.IOException
- The main for running all puzzles with all heuristics, and
printing out all solution paths as well as a final summary
table.
- Throws:
java.io.FileNotFoundException
java.io.IOException