|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectPart2all
public class Part2all
Yuriy Kozlov
Part2.java -- Final Project
This is the test file for Part 2 of the final project. It prints out a
solved state, then a random state, then solves the random state. If it
could be solved, it prints out the last three steps of the solution.
| Constructor Summary | |
|---|---|
Part2all()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Runs the methods. |
static void |
printall(java.util.List lst)
Precondition: lst is not null and contains PuzzleStates. Prints out all the states in the list. |
static void |
printRandomSolve()
Prints out a solved state, then a random state, then solves the random state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Part2all()
| Method Detail |
|---|
public static void printRandomSolve()
public static void printall(java.util.List lst)
lst - A list whose elements to print.public static void main(java.lang.String[] args)
args - not used
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||