pub fn equatorial_edge_slice_index(&self) -> u16 {
        let mut edge_piece_pos: [usize; 4] = [0; 4];
        let mut j = 0;
        for i in 0..12 {
            if self.edges[(i + Edge3x3x3::FR as u8 as usize) % 12].piece as u8
                >= Edge3x3x3::FR as u8
                && self.edges[(i + Edge3x3x3::FR as u8 as usize) % 12].piece as u8
                    <= Edge3x3x3::BR as u8
            {
                edge_piece_pos[j] = i;
                j += 1;
            }
        }
        // Compute an index using the combinatorial number system. This will be an integer
        // between zero (solved) and NChooseK(12, 4).
        (n_choose_k(edge_piece_pos[0], 1)
            + n_choose_k(edge_piece_pos[1], 2)
            + n_choose_k(edge_piece_pos[2], 3)
            + n_choose_k(edge_piece_pos[3], 4)) as u16
    }
/// Find the positions of the edge pieces that belong in the equatorial slice. For this
/// index, it does not matter what order these pieces are in, so which piece it is can
/// be ignored. The four positions should be in sorted order so that the permutations
/// of ordering do not matter. This allows the index to be generated using the
/// combinatorial number system. Represent in a way that the equatorial slice members
/// have position 0-3 when they are in the equatorial slice (this allows the zero
/// index to represent the solved state).
Find the positions of the edge pieces that belong in the equatorial slice. For this
index, it does not matter what order these pieces are in, so which piece it is can
be ignored. The four positions should be in sorted order so that the permutations
of ordering do not matter. This allows the index to be generated using the
combinatorial number system. Represent in a way that the equatorial slice members
have position 0-3 when they are in the equatorial slice (this allows the zero
index to represent the solved state).
Find the positions of the edge pieces that belong in the equatorial slice . For this index it does not matter what order these pieces are in so which piece it is can be ignored . The four positions should be in sorted order so that the permutations of ordering do not matter . This allows the index to be generated using the combinatorial number system . Represent in a way that the equatorial slice members have position 0 - 3 when they are in the equatorial slice ( this allows the zero index to represent the solved state ) .
pub fn equatorial_edge_slice_index(&self) -> u16 {
        let mut edge_piece_pos: [usize; 4] = [0; 4];
        let mut j = 0;
        for i in 0..12 {
            if self.edges[(i + Edge3x3x3::FR as u8 as usize) % 12].piece as u8
                >= Edge3x3x3::FR as u8
                && self.edges[(i + Edge3x3x3::FR as u8 as usize) % 12].piece as u8
                    <= Edge3x3x3::BR as u8
            {
                edge_piece_pos[j] = i;
                j += 1;
            }
        }
        // Compute an index using the combinatorial number system. This will be an integer
        // between zero (solved) and NChooseK(12, 4).
        (n_choose_k(edge_piece_pos[0], 1)
            + n_choose_k(edge_piece_pos[1], 2)
            + n_choose_k(edge_piece_pos[2], 3)
            + n_choose_k(edge_piece_pos[3], 4)) as u16
    }
pub fn equatorial_edge_slice_index ( & self ) -> u16 { let mut edge_piece_pos : [ usize ; 4 ] = [ 0 ; 4 ] ; let mut j = 0 ; for i in 0 .. 12 { if self . edges [ ( i + Edge3x3x3 :: FR as u8 as usize ) % 12 ] . piece as u8 >= Edge3x3x3 :: FR as u8 && self . edges [ ( i + Edge3x3x3 :: FR as u8 as usize ) % 12 ] . piece as u8 <= Edge3x3x3 :: BR as u8 { edge_piece_pos [ j ] = i ; j += 1 ; } } // Compute an index using the combinatorial number system. This will be an integer // between zero (solved) and NChooseK(12, 4). ( n_choose_k ( edge_piece_pos [ 0 ] , 1 ) + n_choose_k ( edge_piece_pos [ 1 ] , 2 ) + n_choose_k ( edge_piece_pos [ 2 ] , 3 ) + n_choose_k ( edge_piece_pos [ 3 ] , 4 ) ) as u16 }
Find the positions of the edge pieces that belong in the equatorial slice.
Find the positions of the edge pieces that belong in the equatorial slice .
&self
&self