#define ENDD 64
[...]
if(!recur(plip,x-2,y+1)) /* try y-1 and then y+1, or y+1 and then y-1 */
return(0); /* and see the change in time and steps */
if(!recur(plip,x-2,y-1))
return(0);
if(!recur(plip,x+2,y-1))
return(0);
if(!recur(plip,x+2,y+1))
[...]
if(recur(&plip,5, 5))
avec bogomips : 897.84 il ne trouve pas dans les 5 minutes ...
[^] # Re: Deplacement du cheval
Posté par doublehp . En réponse au journal Deplacement du cheval. Évalué à 1.
#define ENDD 64
[...]
if(!recur(plip,x-2,y+1)) /* try y-1 and then y+1, or y+1 and then y-1 */
return(0); /* and see the change in time and steps */
if(!recur(plip,x-2,y-1))
return(0);
if(!recur(plip,x+2,y-1))
return(0);
if(!recur(plip,x+2,y+1))
[...]
if(recur(&plip,5, 5))
avec bogomips : 897.84 il ne trouve pas dans les 5 minutes ...