Advanced

Re: Alphabet counties checker mystery

Alphabet counties checker mystery
April 23, 2022 02:11AM
For user 614Buckeye, https://project-gc.com/Challenges/GC7V6AB/36287 does not show users finds for Bexar county inTexas as a B despite at least 1 trad in the county. My first thought is the checker chose to use this county for the X but that's not it either. Ideas?



Edited 1 time(s). Last edit at 04/23/2022 03:26PM by rragan. (view changes)
Re: Alphabet counties checker mystery
April 23, 2022 04:02AM
The history on the script seems to be here: https://project-gc.com/forum/read?11,10069,10591

I think it is failing because the regex for B (and most other letters) has "starts with letter" followed by 1 or more letters that are not QZX followed by the open paren for region. Bexar fails the test because it has an X in the middle. Can the test just be the Starts with part for all but QZ and X at the end?
Re: Alphabet counties checker mystery
April 23, 2022 03:42PM
Would moving QXZ rules first help? They would pickup rarer cases first and then the rest of the rules just look for leading letter. I'm not sure there is a simple perfect checker. My idea probably lets more first letter matches happen for those with X embedded.

However it has issues too. Consider, finds for only regions Box, Cow, Six, Severn. My idea picks Box for X, Cow for C and Six for S. If Box is my only B region, it would be better to use it for B and the later Six for X but short of some counting scheme that takes all the unique ones first and then uses the leftovers, I don't see a simpler fix for common cases with an embedded X.
Sorry, only registered users may post in this forum.

Click here to login