Source: Like a Rogue
Part 1: Starting with a sequence of
.
and^
, generate additional rows using the rules based on the three characters above the new position.
^^.
->^
.^^
->^
^..
->^
..^
->^
- Otherwise ->
.
How many safe tiles (
.
) are there after 40 generations?