×

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

Re: Checker german states (exclude neighboring states)

[Resolved] Checker german states (exclude neighboring states)
June 12, 2019 11:47AM
Hello,

I'm looking for a checker for the German states. A fixed number of chaches should be completed in each federal state, based on the Roman numerals MDCLXVI (1000- 500- 100- 50- 10- 5- 1)

In the results neighboring numbers may not be adjacent federal states. Example: 1000 caches in Saxony, 500 in Brandenburg is not allowed. 1000 caches in Brandenburg, 500 in Bavaria and 100 in Hamburg is allowed, because none of the states border on each other.
The programming I imagine as a "if then query". If Brandenburg, then not Berlin, not Saxony, not Saxony Anhalt.

Is such a checker possible? What kind of work is needed here?
Re: Checker german states (exclude neighboring states)
June 13, 2019 07:20PM
> Is such a checker possible?

yes

> What kind of work is needed here?

a lot :-)

please provide the list of adjacent regions in the following format:
Brandenburg: Berlin,Sachsen,Sachsen-Anhalt
Berlin: Brandenburg
etc

please use EXACTLY the following names, maybe use cut-and-paste method to avoid errors:

Baden-Württemberg
Bremen
Niedersachsen
Sachsen
Bayern
Hamburg
Nordrhein-Westfalen
Sachsen-Anhalt
Berlin
Hessen
Rheinland-Pfalz
Schleswig-Holstein
Brandenburg
Mecklenburg-Vorpommern
Saarland
Thüringen
Re: Checker german states (exclude neighboring states)
June 18, 2019 06:52AM
Thanks for your quick reply. I strictly followed your instructions and put the states together in the right format.

++++++++++
Baden-Württemberg: Bayern,Hessen,Rheinland-Pfalz
Bayern: Sachsen,Thüringen,Hessen,Baden-Württemberg
Berlin:Brandenburg
Brandenburg:Mecklenburg-Vorpommern,Niedersachsen,Sachsen-Anhalt,Sachsen
Bremen:Niedersachsen
Hamburg:Schleswig-Holstein,Niedersachsen
Hessen:Niedersachsen,Nordrhein-Westfalen,Rheinland-Pfalz,Baden-Württemberg,Bayern,Thüringen
Mecklenburg-Vorpommern:Schleswig-Holstein,Niedersachsen,Brandenburg
Niedersachsen:Hamburg,Schleswig-Holstein,Bremen,Nordrhein-Westfalen,Hessen,Thüringen,Sachsen-Anhalt,Brandenburg,Mecklenburg-Vorpommern
Nordrhein-Westfalen:Niedersachsen,Rheinland-Pfalz,Hessen
Rheinland-Pfalz:Nordrhein-Westfalen,Saarland,Baden-Württemberg,Hessen
Saarland:Rheinland-Pfalz
Sachsen:Brandenburg,Sachsen-Anhalt,Thüringen,Bayern
Sachsen-Anhalt:Niedersachsen,Thüringen,Sachsen,Brandenburg
Schleswig-Holstein:Niedersachsen,Hamburg,Mecklenburg-Vorpommern,
Thüringen:Sachsen-Anhalt,Niedersachsen,Hessen,Bayern,Sachsen
++++++++++


@pinkunicorn: As Pieterix wrote, it means the minimum number of caches. More is possible, but not required.
Re: Checker german states (exclude neighboring states)
June 18, 2019 10:18AM
ok, I'll try to write the checker
(i hate the smiles :S! one cannot write : S without space between!)
Re: Checker german states (exclude neighboring states)
June 19, 2019 01:15PM
What the hell does the Smilies do in my text? Curious feature...

I tried the checker and found errors.
With the user "WattwurmJana" I get a positive issue, unfortunately, the states are neighbors.
(Saxony 20167 found 1000 required, Brandenburg 3267 founds 500 required, Saxony-Anhalt ... All 3 states border on each other.

For my name, the checker generates the same error. He ignores the exclusion of neighboring ones.

The GC-Code is GC89DFC. It´s unpublished and not reviewed.



Edited 1 time(s). Last edit at 06/19/2019 01:16PM by suzidriver. (view changes)
Re: Checker german states (exclude neighboring states)
June 19, 2019 01:39PM
I'll verify and fix it
Re: Checker german states (exclude neighboring states)
June 19, 2019 05:12PM
it was a little mistake, now should be ok. Please try it

this is the code for the listing:

<a href="https://project-gc.com/Challenges/GC89DFC/43479"><img src="https://cdn2.project-gc.com/Images/Checker/43479"; title="Project-GC Challenge checker" alt="PGC Checker"></a>
Re: Checker german states (exclude neighboring states)
June 13, 2019 08:52PM
Just out of curiosity, what happens when someone has more than 1000 caches in all regions? A challenge must be attainable, according to the guidelines.
Re: Checker german states (exclude neighboring states)
June 14, 2019 01:30PM
I suspect that the 1000, 500, 100, etc are minimum counts, so in your example you can find 3000 in one region, 2500 in another non-adjacent region, 2000 in the next non-adjacent region, etc.
Re: Checker german states (exclude neighboring states)
June 18, 2019 10:19AM
work in progress
Re: Checker german states (exclude neighboring states)
June 18, 2019 09:33PM
It's done
With some problem caused by smiles (grrr....) and another problems caused by typos and errors in the list of neighbors it's done. (I've made also internal check for integrity of the configuration, so I've found and fixed the problems).

Try it here:
https://project-gc.com/Challenges//43463

If you like it, please tell me the GC code of the cache, it's need for the checker.
Re: Checker german states (exclude neighboring states)
October 08, 2019 04:57PM
What is the situation with this request ?? Can we move it to ARCHIVE Checker requests (completed) or will it be cancelled.
Re: Checker german states (exclude neighboring states)
October 08, 2019 05:03PM
Seems that it's ok
Sorry, only registered users may post in this forum.

Click here to login