Dieser Cache ist ein Geburtstagsgeschenk für Ralix und darf von ihm
als erstes geloggt werden.
Ein kleines Rätsel für den versierten Informatiker vom
Telegrafenberg. Es gilt die richtigen Koordinaten des Caches zu entschlüsseln.
Für den 1. Teil des Problems wird das unten aufgeführte Script
benötigt. Der Input für das Script befindet sich auf dieser Seite.
Ein Hinweis zum Input bietet die Beweisführung des Halteproblems
aus der Theoretischen Informatik.
Der 2. Teil befasst sich mit den historischen Anfängen des
Telegrafenbergs.
Deshalb ist der Cache natürlich auch dort versteckt.
English version:
This is a birthday present for Ralix. It's a small riddle for the computer
scientist at the Telegrafenberg.
You need to find the right coordinates for the cache.
For the first part of the riddle you will need the script below. You will find the
input for the script on this page. A hint might be the proof of the
halting problem in computability theory.
The second part concerns the historic beginnings of the Telegrafenberg.
And that's were you will find cache.
Hier das Script:
#!/usr/bin/ruby
class Integer
MAPPING = [" |\n |\n", " |/\n |\n", " |_\n |\n", " |\n |\\\n",
" |\n/|\n", "_|\n |\n", "\\|\n |\n", "\\|/\n |\n",
"\\|_\n |\n", "\\|\n |\\\n"]
def to_pss
(self % 1000).to_s.rjust(3, "0").chars.map(&:to_i).reverse.map { |n| MAPPING[n] }.join
end
end
class Symbol
MAPPING = { :e => " |/\n |\n\\|\n |\n\\|\n |\n",
:n => "_|/\n |\n\\|\n |\n |\n/|\n",
:dot => " |\n/|\n |/\n |\n |/\n |\n" }
def to_pss
MAPPING[self]
end
end
input = nil
begin
input = ARGF.read.gsub(/\s+/, "").bytes.to_a
input = input.fill(1, input.length, 800 - input.length)
rescue => e
puts "no valid input given"
puts "usage: #{__FILE__} input_file"
end
[[:n, input[170] - input[261], input[38] - input[399], :dot, ((input[185] * input[223]) % 1000) + (input[446] / 10) + 2].map(&:to_pss),
[:e, input[212] - input[266], input[661] - input[781], :dot, (((input[60] + input[66]) * input[195]) % 1000) + input[159]].map(&:to_pss)].each do |coord|
puts coord.join("\n")
puts
end
Also, viel Spaß beim knobeln!
Gäste sind natürlich herzlich willkommen.