pub struct PruningTables {
pub corners: Vec<u8>,
pub eo: Vec<u8>,
pub ep: Vec<u8>,
}Expand description
A struct holding pruning information for certain subgroups of the Rubik’s Cube.
Each pruning table provides a lower bound on how many moves are
needed to transform a given state into the solved state within each subgroup.
These tables are obtained from pruning.rs.
Fields§
§corners: Vec<u8>A pruning table representing the subgroup of corner permutation and orientation.
eo: Vec<u8>A pruning table representing the subgroup of edge orientation.
ep: Vec<u8>A pruning table representing the subgroup of edge permutation.
Implementations§
Source§impl PruningTables
impl PruningTables
Sourcepub fn default_tables() -> Self
pub fn default_tables() -> Self
Reads the default pruning tables from the default file names.
Sourcepub fn compute_h_value(&self, state: &CubeState) -> u8
pub fn compute_h_value(&self, state: &CubeState) -> u8
Computes a lower bound on the number of moves needed to solve the given state, based on the pruning table values.
Auto Trait Implementations§
impl Freeze for PruningTables
impl RefUnwindSafe for PruningTables
impl Send for PruningTables
impl Sync for PruningTables
impl Unpin for PruningTables
impl UnwindSafe for PruningTables
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more