03-18-2021, 10:05 AM
Hi,
After looking your trial, the result is correct. Because you try to compute the distance between (last From) and (last To) in looking only the empty to site. However the site (last To) contains a piece. So (last To) can never be reached here. Consequently the ludeme returns our INFINITY value which is 1000000000.
Regards,
Eric
After looking your trial, the result is correct. Because you try to compute the distance between (last From) and (last To) in looking only the empty to site. However the site (last To) contains a piece. So (last To) can never be reached here. Consequently the ludeme returns our INFINITY value which is 1000000000.
Regards,
Eric