The three rules of Ruby Q.:
Please do not post any solutions or spoiler discussion for this
quiz until 48 hours have elapsed from the time this message was
Support Ruby Q. by submitting ideas and responses
as often as you can!
Suggestion: A [QUIZ] in the subject of emails about the problem
helps everyone on Ruby T. follow the discussion. Please reply to
the original quiz message, if you can.
Guten Tag Rubyists,
Following in the same vein as last week’s quiz I present to you the
diamond-square algorithm. Instead of one dimensional terrain as
last week, the random terrain generated by this algorithm is in two
dimensions. Visual displays are again encouraged.
The secret to this algorithm is that there are two phases for
generating the new random values: from the diagonals (diamond) and
from the adjacents (square). This makes the generated terrain smoother
and prevents artifacts from generating solely by the adjacents.
Once equipped with these terrain generation algorithms, making ruby
based Elf/Goblin/Tanks simulations will be a breeze!
There is now a suggestion form up on the Ruby Q. website:
http://rubyquiz.strd6.com/suggestions . I’m looking forward to all of
your great suggestions!