@@ -14,7 +14,7 @@ impl LockedCandidates {
1414 path : & mut SolvePath ,
1515 flags : TechniqueFlags ,
1616 ) -> bool {
17- let mut placements_made = false ;
17+ let mut eliminations_made = false ;
1818
1919 for candidate in 1 ..=9 {
2020 let candidate_bit = 1 << ( candidate - 1 ) ;
@@ -41,15 +41,15 @@ impl LockedCandidates {
4141 if r != row && prop. board . is_empty ( r, c) {
4242 let initial_mask = prop. candidates . get ( r, c) ;
4343 if ( initial_mask & candidate_bit) != 0 {
44- placements_made |=
44+ eliminations_made |=
4545 prop. eliminate_candidate ( r, c, candidate_bit, flags, path) ;
4646 }
4747 }
4848 }
4949 }
5050 }
5151 }
52- placements_made
52+ eliminations_made
5353 }
5454
5555 // Helper function for Locked Candidates (column), private to this impl block
@@ -59,7 +59,7 @@ impl LockedCandidates {
5959 path : & mut SolvePath ,
6060 flags : TechniqueFlags ,
6161 ) -> bool {
62- let mut placements_made = false ;
62+ let mut eliminations_made = false ;
6363
6464 for candidate in 1 ..=9 {
6565 let candidate_bit = 1 << ( candidate - 1 ) ;
@@ -86,15 +86,15 @@ impl LockedCandidates {
8686 if c != col && prop. board . is_empty ( r, c) {
8787 let initial_mask = prop. candidates . get ( r, c) ;
8888 if ( initial_mask & candidate_bit) != 0 {
89- placements_made |=
89+ eliminations_made |=
9090 prop. eliminate_candidate ( r, c, candidate_bit, flags, path) ;
9191 }
9292 }
9393 }
9494 }
9595 }
9696 }
97- placements_made
97+ eliminations_made
9898 }
9999
100100 // Helper function for Locked Candidates (box), private to this impl block
@@ -104,7 +104,7 @@ impl LockedCandidates {
104104 path : & mut SolvePath ,
105105 flags : TechniqueFlags ,
106106 ) -> bool {
107- let mut placements_made = false ;
107+ let mut eliminations_made = false ;
108108 let start_row = ( box_idx / 3 ) * 3 ;
109109 let start_col = ( box_idx % 3 ) * 3 ;
110110
@@ -132,7 +132,7 @@ impl LockedCandidates {
132132 if ( c < start_col || c >= start_col + 3 ) && prop. board . is_empty ( row, c) {
133133 let initial_mask = prop. candidates . get ( row, c) ;
134134 if ( initial_mask & candidate_bit) != 0 {
135- placements_made |=
135+ eliminations_made |=
136136 prop. eliminate_candidate ( row, c, candidate_bit, flags, path) ;
137137 }
138138 }
@@ -148,40 +148,40 @@ impl LockedCandidates {
148148 if ( r < start_row || r >= start_row + 3 ) && prop. board . is_empty ( r, col) {
149149 let initial_mask = prop. candidates . get ( r, col) ;
150150 if ( initial_mask & candidate_bit) != 0 {
151- placements_made |=
151+ eliminations_made |=
152152 prop. eliminate_candidate ( r, col, candidate_bit, flags, path) ;
153153 }
154154 }
155155 }
156156 }
157157 }
158- placements_made
158+ eliminations_made
159159 }
160160}
161161
162162impl TechniqueRule for LockedCandidates {
163163 fn apply ( & self , prop : & mut TechniquePropagator , path : & mut SolvePath ) -> bool {
164- let mut overall_placements_made = false ;
164+ let mut overall_eliminations_made = false ;
165165
166166 // Check rows for pointing pairs/triples
167167 for row in 0 ..9 {
168- overall_placements_made |=
168+ overall_eliminations_made |=
169169 Self :: process_row_for_locked_candidates ( prop, row, path, self . flags ( ) ) ;
170170 }
171171
172172 // Check columns for pointing pairs/triples
173173 for col in 0 ..9 {
174- overall_placements_made |=
174+ overall_eliminations_made |=
175175 Self :: process_col_for_locked_candidates ( prop, col, path, self . flags ( ) ) ;
176176 }
177177
178178 // Check boxes for box/line reduction
179179 for box_idx in 0 ..9 {
180- overall_placements_made |=
180+ overall_eliminations_made |=
181181 Self :: process_box_for_locked_candidates ( prop, box_idx, path, self . flags ( ) ) ;
182182 }
183183
184- overall_placements_made
184+ overall_eliminations_made
185185 }
186186
187187 fn flags ( & self ) -> crate :: core:: TechniqueFlags {
0 commit comments