Advanced

[Resolved] Checker for this old challenge - GC2NE02

[Resolved] Checker for this old challenge - GC2NE02
July 23, 2023 05:22PM
https://coord.info/GC2NE02 - Texas Country City Challenge

if given 14 waypoints for these 14 Texas Cities (note there are two Egypt's so either would count in the list of 13 cities), would it be possible to write a checker for old one?
Re: Checker for this old challenge - GC2NE02
July 24, 2023 12:34AM
I've got a script that does point-radius. But it probably won't be able to handle finding "either" Egypt unless I do a script update. And it won't be able to handle Rule 3:

> You can substitute 3 finds in the actual cooresponding country.

(I assume this means: you can replace a find within a radius with three in the corresponding country...)

Will give this a shot.



Edited 1 time(s). Last edit at 07/24/2023 01:01AM by Hügh. (view changes)
Re: Checker for this old challenge - GC2NE02
July 24, 2023 01:13AM
It's not fully finished, but I'm stopping here for the evening so I'll post what I have:

https://project-gc.com/Challenges/79643
Re: Checker for this old challenge - GC2NE02
July 24, 2023 03:18AM
looks good so far. It substituted my 3+ finds in Germany for a find within the radius for Germany Texas.

It appears you just need to do the check for within the radius of either Egypt 1 or Egypt 2 and it will be good. It did find a find for me within one of the radius' but I think it was checking the same radius
Re: Checker for this old challenge - GC2NE02
July 26, 2023 09:14PM
On the individual lines showing a valid find for each city, the word "is" is missing, e.g.

You've found GC1B2BG, which 0.57 miles from China.
Re: Checker for this old challenge - GC2NE02
July 26, 2023 10:17PM
Ah, good catch. I will fix that.

I think Egypt is fine, but I will change it so that it only shows one line in the output.
Re: Checker for this old challenge - GC2NE02
July 26, 2023 10:27PM
and I think the single line for Egypt should read either 'Egypt (Montgomery County)' or 'Egypt (Wharton County)', depending upon which cache you found within the radius of one of those two Egypts.



Edited 1 time(s). Last edit at 07/26/2023 10:28PM by DrPflug. (view changes)
Re: Checker for this old challenge - GC2NE02
July 26, 2023 10:45PM
Updated. Please run it again and let me know if there are any additional changes you would like to see.
Re: Checker for this old challenge - GC2NE02
July 26, 2023 11:46PM
It looks good now, can you pls put it into production.
Re: Checker for this old challenge - GC2NE02
July 27, 2023 12:21AM
Re: Checker for this old challenge - GC2NE02
July 27, 2023 03:24PM
I just found a mistake. Tested with user val_nicole7. The checker says:

You've found GC1KHZD, which is 8.52 miles from Egypt (Montgomery County).

But GC1KHZD is close to the Egypt in Wharton County, not the Egypt in Montgomery County.
Re: Checker for this old challenge - GC2NE02
July 27, 2023 08:51PM
Good catch. Will fix later today.
Re: Checker for this old challenge - GC2NE02
July 27, 2023 10:33PM
Fixed.
Re: Checker for this old challenge - GC2NE02
July 27, 2023 11:57PM
thanks.
Re: Checker for this old challenge - GC2NE02
July 24, 2023 12:38AM
(removed: see above)



Edited 1 time(s). Last edit at 07/24/2023 01:51AM by Hügh. (view changes)
Sorry, only registered users may post in this forum.

Click here to login