Package edu.wisc.game.engine

## Class PostOrder

- java.lang.Object
- - edu.wisc.game.engine.PostOrder

-     public class PostOrder
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `PostOrder()` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static void` | `applyPostPosToAcceptanceMap​(RuleSet rules, RuleSet.Row atoms, Vector<Piece> values, BitSet[][] jAcceptanceMap)` | When an Order is applied not to the entire board, but only to the pieces that are acceptable based on all other criteria.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PostOrder

          public PostOrder()

  - ### Method Detail

    - #### applyPostPosToAcceptanceMap

          public static void applyPostPosToAcceptanceMap​(RuleSet rules,
                                                         RuleSet.Row atoms,
                                                         Vector<Piece> values,
                                                         BitSet[][] jAcceptanceMap)

      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][];