Package edu.wisc.game.engine
Class PostOrder
java.lang.Object
edu.wisc.game.engine.PostOrder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyPostPosToAcceptanceMap
(RuleSet rules, RuleSet.Row atoms, BitSet[][] acceptanceMap) When an Order is applied not to the entire board, but only to the pieces that are acceptable based on all other criteria.
-
Constructor Details
-
PostOrder
public PostOrder()
-
-
Method Details
-
applyPostPosToAcceptanceMap
public static void applyPostPosToAcceptanceMap(RuleSet rules, RuleSet.Row atoms, BitSet[][] acceptanceMap) When an Order is applied not to the entire board, but only to the pieces that are acceptable based on all other criteria. For example, "finding the topmost red triangle(s)". This can be used from Episode.buildAcceptanceMap, to modify the acceptanceMap obtained by applying all other clauses of atoms.Introduced in GS 6.041 (2024-10-22)
- Parameters:
acceptanceMap
- The bit acceptanceMap[pos][atomNo][dest] is set if the rule atom[atomNo] in the current rule line allows moving the piece currently at pos to bucket[dest]. //private BitSet[][] acceptanceMap = new BitSet[Board.N*Board.N+1][];
-