Package edu.wisc.game.engine
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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOrder.PositionSelectorNames of built-in (predefined) orders -
Field Summary
-
Method Summary
Modifier and Type Method Description BitSetfindEligiblePieces(BitSet onBoard)In the present board configuration, which piece(s) would be eligible to be picked right now under this order?StringtoString()Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Method Details
-
toString
-
findEligiblePieces
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).
-