Class Part2

java.lang.Object
  extended by Part2

public class Part2
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
Part2()
           
 
Method Summary
static void main(java.lang.String[] args)
          Runs the methods.
static void print3(java.util.List lst)
          Precondition: lst is not null and contains PuzzleStates.
Prints out the last 3 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

Part2

public Part2()
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.


print3

public static void print3(java.util.List lst)
Precondition: lst is not null and contains PuzzleStates.
Prints out the last 3 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