Vixen
02b45cc4
csharp
public readonly ref struct MoveCandidate

One move, as the selection pass sees it: flat, contiguous, no pointer chasing.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ A ref struct, so it cannot be stored. The facets are a window into the set's own table and are valid for the call; a scorer that squirrelled one away would be holding a span into an array it does not own. The compiler refusing is better than a comment asking.

Fields and properties (5)

  • public int Index

    Its position in the set.

  • public MoveKey Key

    Its identity, for the tie-break.

  • public MoveTraits Traits

    What it does.

  • public ReadOnlySpan<ulong> Facets

    What it is for, packed and sorted.

  • public MoveEntry Entry

    The move itself, for whatever the flat view does not carry.

Methods (3)

  • public MoveCandidate(int Index, MoveKey Key, MoveTraits Traits, ReadOnlySpan<ulong> Facets, MoveEntry Entry)

    One move, as the selection pass sees it: flat, contiguous, no pointer chasing.

  • public bool Says(Facet facet)

    Whether it says this.

  • public bool SaysAll(FacetSet required)

    Whether it says everything a set does.

Used by (6)

  • AlphabeticalTestScorerVixen.Animation.Tests
  • DefaultMoveScorerVixen.Animation
  • IMoveScorerVixen.Animation
  • MoveExplanationsVixen.Animation
  • MoveSetVixen.Animation
  • QueryMoveSelectorVixen.Animation