src/puzzle.cpp
// the next routine is called at each step of the process
// the searched rating is stored in "difficulty"
// a check of filters is made and if any special filter is active,
// the process is cancelled
// return code 0 nothing special
//             1 process cancelled
//             2 ignore (er<x.y) these routines
the next routine is called at each step of the process
the searched rating is stored in "difficulty"
a check of filters is made and if any special filter is active,
the process is cancelled
return code 0 nothing special
1 process cancelled
2 ignore (er<x.y) these routines
the next routine is called at each step of the process the searched rating is stored in " difficulty " a check of filters is made and if any special filter is active the process is cancelled return code 0 nothing special 1 process cancelled 2 ignore ( er<x . y ) these routines
void PUZZLE::Step(SolvingTechnique dif) {   
	rating_ir = 0;
	difficulty = dif;
	if(options.o1 < 2)
		return; 
	if(options.o1 == 2) {
		if(assigned && difficulty > options.maxep) {
			ermax = 0;
			rating_ir = 1;
			return;
		} 
		else
			return;
	}
	if(options.filters.On(3)) {    
		if(difficulty >= options.miner) {
			ermax = 0;
			rating_ir = 3;
			return;
		}  
	}
	if(difficulty >= options.maxer) {
		ermax = 0;
		rating_ir = 2;
		return;
	} 
}
void PUZZLE :: Step ( SolvingTechnique dif ) { rating_ir = 0 ; difficulty = dif ; if ( options . o1 < 2 ) return ; if ( options . o1 == 2 ) { if ( assigned && difficulty > options . maxep ) { ermax = 0 ; rating_ir = 1 ; return ; } else return ; } if ( options . filters . On ( 3 ) ) { if ( difficulty >= options . miner ) { ermax = 0 ; rating_ir = 3 ; return ; } } if ( difficulty >= options . maxer ) { ermax = 0 ; rating_ir = 2 ; return ; } }
the next routine is called at each step of the process
the searched rating is stored in "difficulty"
a check of filters is made and if any special filter is active,
the process is cancelled
return code 0 nothing special
1 process cancelled
2 ignore (er<x.y) these routines
the next routine is called at each step of the process the searched rating is stored in " difficulty " a check of filters is made and if any special filter is active the process is cancelled return code 0 nothing special 1 process cancelled 2 ignore ( er<x . y ) these routines
// analyse what to do at that level //nothing to do for -d command // if -p command, stop if we pass maxep // now other special filters  // -n() active if we pass the limit // -n() command // finished // filter on maxer cancelling high rating /*
	if(difficulty>maxed || difficulty>maxep ){maxer=0; ir=1;return;}
	*/