Class Part2all

java.lang.Object
  extended by Part2all

public class Part2all
extends java.lang.Object

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

Part2all

public Part2all()
Method Detail

printRandomSolve

public static void printRandomSolve()
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.


printall

public static void printall(java.util.List lst)
Precondition: lst is not null and contains PuzzleStates.
Prints out all the states in the list.

Parameters:
lst - A list whose elements to print.

main

public static void main(java.lang.String[] args)
Runs the methods.

Parameters:
args - not used