Package edu.wisc.game.engine
Class EligibilityForOrders
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,BitSet>
public class EligibilityForOrders extends HashMap<String,BitSet>
At present, which pieces are eligible for picking under each of
the existing orders? (For example, which pieces are presently in
the topmost occupied row? Which piece is the first in the English
reading order?) This structure needs to be updated every time a
piece is removed from the board.
This is an auxiliary class for edu.wisc.game.sql.Episode.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
Constructor Summary
Constructors Constructor Description EligibilityForOrders(RuleSet rules, BitSet onBoard)
-
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Constructor Details
-
Method Details
-
toString
- Overrides:
toString
in classAbstractMap<String,BitSet>
-