Skip to content

Commit

Permalink
added REFERENCE_POSITIONS to PieceSet
Browse files Browse the repository at this point in the history
  • Loading branch information
Odilf committed Aug 12, 2023
1 parent 3280eb2 commit 3fa7e6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions barbarosa/src/generic/piece/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ impl<P: PieceSetDescriptor<N>, const N: usize> PieceSet<P, N> {
/// Alias to [`PieceSetDescriptor::SOLVED`]
pub const SOLVED: Self = Self { pieces: P::SOLVED };

/// Alias to [`PieceSetDescriptor::REFERENCE_POSITIONS`]
pub const REFERENCE_POSITIONS: [P::Position; N] = P::REFERENCE_POSITIONS;

/// Creates a new [`PieceSet`] from an array of pieces. Fails if one of the invariants is
/// not upheld.
pub fn new(pieces: [P; N]) -> Result<Self, ValidationError<P>> {
Expand Down

0 comments on commit 3fa7e6a

Please sign in to comment.