Source: A Maze of Twisty Little Cubicles1
Part 1: Generate a procedurally generated maze using the following equation:
- x^2 + 3x + 2xy + y + y^2 + c
x
andy
are the coordinates of a point andc
is a constant.
Count the number of bits for each point. Even is open spaces, odd is walls.
What is the shortest route from
(0, 0)
to(31, 39)
?