If you're interested in functional programming, you might also want to checkout my second blog which i'm actively working on!!

Thursday, April 8, 2010

Miljoenenjacht

Today I heard about a game called 'miljoenenjacht' on the radio. You basically have to answer some questions online which will gradually reveal the ZIP code where the Nationale Postcode loterij has hidden a suitcase full of money.

Anyway... I thought of checking it out and i answered the first question correctly. This revealed 2 numbers of the zip code pattern "[0-9][0-9][0-9][0-9] [A-Z][A-Z]".

Since i didn't have any idea what postcodes are available in the Netherlands I downloaded some CSV files from the internet which contained following information
- Zip code
- City Name
- Street Name

To be able to query those files by a specific zip code pattern I wrote following diry hack :-)







The output of running the main method:

The pattern resulted in 1319 hits.
7908 AA | Hoogeveen | Mortonhof
7908 AB | Hoogeveen | De Weide
7908 AC | Hoogeveen | Zuidwoldigerweg
...

No comments:

Post a Comment