Class Order

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Vector<Integer>>, Collection<Vector<Integer>>, List<Vector<Integer>>, RandomAccess

public class Order
extends Vector<Vector<Integer>>
An Order object describe a built-in or custom ordering of
See Also:
Serialized Form
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Vector<Vector<Integer>>
    • findEligiblePieces

      public BitSet findEligiblePieces​(BitSet onBoard)
      In the present board configuration, which piece(s) would be eligible to be picked right now under this order?
      Parameters:
      onBoard - indicates which of the N*N cells are occupied.
      Returns:
      a subset of onBoard consisting of the piece(s) "in the head" of this order. (E.g the topmost or rightmost pieces).