Class PieceList

java.lang.Object
  |
  +--PieceList

public class PieceList
extends java.lang.Object

A PieceList is a linked list of Pieces.


Field Summary
 PieceList next
           
 Piece piece
           
 
Constructor Summary
PieceList(PieceList pl)
          Make a copy of an existing piece list.
PieceList(Piece p, PieceList pl)
          Make a new piece list node.
 
Method Summary
 Piece index(int pieceNum)
          Find the pieceNumth piece in the list.
 void print()
          Print a PieceList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

piece

public Piece piece

next

public PieceList next
Constructor Detail

PieceList

public PieceList(Piece p,
                 PieceList pl)
Make a new piece list node.

PieceList

public PieceList(PieceList pl)
Make a copy of an existing piece list.
Method Detail

print

public void print()
Print a PieceList. The list is printed in order; this matches the order piece numbers are assigned when printing solutions.

index

public Piece index(int pieceNum)
Find the pieceNumth piece in the list.