Skip to content

Commit bf7d667

Browse files
committed
Store SPEFFZ_DLB_INDEX in a constant.
1 parent 8ee50eb commit bf7d667

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rs/scramble/puzzles/big_cubes.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ use super::{
3737
#[allow(non_upper_case_globals)]
3838
const BIG_CUBES_MINIMUM_OPTIMAL_SOLUTION_MOVE_COUNT: MoveCount = MoveCount(2);
3939

40+
const SPEFFZ_DLB_INDEX: u8 = 6;
41+
4042
pub struct BigCubeScrambleInfo {
4143
kpuzzle: KPuzzle,
4244
size: u32,
@@ -85,7 +87,7 @@ impl BigCubeScrambleInfo {
8587
let orbit_is_CORNERS = orbit_info.num_pieces == 8;
8688

8789
for i in 0..orbit_info.num_pieces {
88-
if orbit_is_CORNERS && (i == 6) {
90+
if orbit_is_CORNERS && (i == SPEFFZ_DLB_INDEX) {
8991
continue;
9092
}
9193
mask.set_orientation_with_mod(

0 commit comments

Comments
 (0)