Skip to content

Commit

Permalink
Clarify parity values returned by perm_parity function
Browse files Browse the repository at this point in the history
  • Loading branch information
b-paul committed Feb 9, 2024
1 parent b16f477 commit 66bcd6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cube333/cubiecube.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ impl CubieCube {
parity
}

/// Return the permutation parity of the cube as a bool
/// Return the permutation parity of the cube as a bool. Returns true if there is parity, and
/// false if there is no parity.
pub fn perm_parity(&self) -> bool {
self.ep_parity() ^ self.cp_parity()
}
Expand Down

0 comments on commit 66bcd6d

Please sign in to comment.