×

To be able to write in the forum you need to authenticate. Meanwhile it's read-only.

[Work in progress] GCAD0P3: 12..1 D

[Work in progress] GCAD0P3: 12..1 D
August 18, 2023 09:38AM
Hallo,

ich benötige einen Checker für die folgende Aufgabe:

Es müssen in mindestens 12 Bundesländern (bzw. Regionen) im selben Land Caches verschiedener Cache-Typen gefunden worden sein. Dabei müssen
- im 1. Bundesland mindestens 12 verschiedene Cache-Typen,
- im 2. Bundesland mindestens 11 verschiedene Cache-Typen,
- im 3. Bundesland mindestens 10 verschiedene Cache-Typen,
...
- im 11. Bundesland mindestens 2 verschiedene Cache-Typen und
- im 12. Bundesland mindestens 1 Cache-Typ
gefunden worden sein.

Vielen Dank!



Edited 2 time(s). Last edit at 08/18/2023 11:18AM by Maxipimpf. (view changes)
Re: GCAD0P3: 12..1
August 18, 2023 11:12AM
Die erste Beschreibung war nicht korrekt, ich habe sie korrigiert.



Edited 2 time(s). Last edit at 08/18/2023 11:17AM by Maxipimpf. (view changes)
Re: GCAD0P3: 12..1 D
August 18, 2023 06:33PM
I think a new script is required. I might be able to adjust one of my own; not sure.
Re: GCAD0P3: 12..1 D
August 22, 2023 06:14PM
https://project-gc.com/Challenges//80404

My version of SameX-DifferentY has a countdown parameter, so it can handle the 12 down to 1 part... but it's not possible to limit it to 12 regions in the *same* country (or at least, I can't think of how). You can just have 12 different regions in any country. Not sure if that's helpful or not.
Re: GCAD0P3: 12..1 D
August 22, 2023 06:38PM
Thank you very much, it works.
But I want to check the types in the same country...
Re: GCAD0P3: 12..1 D
August 23, 2023 03:27PM
https://project-gc.com/Challenges//80418

I spent a little more time on it, and I think this is correct - but it says you don't qualify. Unfortunately if you fail, the output just says "no matching country". I broke down the results for Germany for your profile:

Fail: Maxipimpf found only 5 groups of 7 or more different Type for the same Region, but needs to find 12 such groups.
Here is what is found so far:
Rheinland-Pfalz
Nordrhein-Westfalen
Baden-Württemberg
Saarland
Sachsen-Anhalt
To continue working on this challenge, try adding additional Type to the following 1 Region for which Maxipimpf already has 6 Type

Region	Type
Schleswig-Holstein	Earthcache
Traditional Cache
Unknown Cache
Virtual Cache
Webcam Cache
Wherigo Cache

So, I'm not sure if there's an issue with the script, or whether you are actually missing qualifiers. (Note: the '7' shown is because it's reduced the limit per iteration).
Re: GCAD0P3: 12..1 D
August 23, 2023 04:05PM
Thank you, I will Check!
Re: GCAD0P3: 12..1 D
August 23, 2023 05:44PM
Now, I have checked using Excel and my finds:

Bremen: 1 type
Mecklenburg-Vorpommern 2 types
Berlin 2 types
Brandenburg 4 types
Schleswig-Holstein 6 types --> 1
Niedersachsen 7 types --> 2
Thüringen 7 types --> 3
Hamburg 7 types--> 4
Sachsen 7 types --> 5
Bayern 9 types --> 6
Sachsen-Anhalt 9 types --> 7
Hessen 10 types --> 8
Saarland 10 types --> 9
Baden-Württemberg 11 types --> 10
Nordrhein-Westfalen 12 types --> 11
Rheinland-Pfalz 13 types --> 12

So, the challenge is fullfilled...

Do you want the sheet incl. pivot chart?
Re: GCAD0P3: 12..1 D
August 24, 2023 04:36AM
I found this checker that is similar to the one I want.
The only difference is that it only considers Germany and only requires 11..1 types:
https://project-gc.com/Challenges/GCAD0P3/80304



Edited 1 time(s). Last edit at 08/24/2023 04:39AM by Maxipimpf. (view changes)
Re: GCAD0P3: 12..1 D
August 24, 2023 05:19AM
Unfortunately it is not as simple as you think to "just" apply that to any country. I suspect bmuzzin's tag will work fine in the end, it just needs some work.
Re: GCAD0P3: 12..1 D
August 24, 2023 05:30AM
I'm sure you do - thank you ;-)!!!
Re: GCAD0P3: 12..1 D
August 24, 2023 02:29PM
https://project-gc.com/Challenges/GCAD0P3/80418

Yes, I figured out the problem. I have the SameX-DifferentY script embedded into my multi-test script and also as a separate script. At some point, I made fixes to the countdown changes in the standalone, but not in the embedded one. So, I have fixed it now, and it says that you pass (in fact, its count for some of the provinces are slightly higher than yours?). The unfortunate thing is when you fail, it doesn't print your "best" country out... but, if I code it to do that, the output could grow huge for someone with finds in 81 countries, such as yourself. I have associated the checker with your cache now... if you want work done on the failure output, that will take time, or you can use it as is (it is associated with your GC code now).

Edit: I found a bug with the output of the SameX/DifferentY portion. It now shows the output for all the countries you've had any find it... it's pretty large if you've got 81 countries, but still readable I think.



Edited 1 time(s). Last edit at 08/24/2023 07:14PM by bmuzzin. (view changes)
Re: GCAD0P3: 12..1 D
August 24, 2023 08:11PM
Great, thank you very much!
The checker works great incl clear output - perfect
Re: GCAD0P3: 12..1 D
August 29, 2023 07:21AM
Hi,
sorry, it's me again. Would it be possible to make the output like in https://project-gc.com/Challenges/GCAD0P4/80308?
Re: GCAD0P3: 12..1 D
August 29, 2023 02:33PM
That script is specifically written for countries and types, and so it has a very nicely formatted output, because it's limited in its generality. The script used for your challenge is essentially combining two generic scripts together, and the same script is used for many different challenges - so customizing the output might change the output for other challenges that use it. That said - we can add formatting parameters for them, but you're going to need to be specific about what you'd like changed.
Re: GCAD0P3: 12..1 D
April 01, 2024 05:04PM
This one has been pending for a long time - and the cache never got published. Can it be cancelled, or is there something further to be done here?
Sorry, only registered users may post in this forum.

Click here to login