Given an odd integer N (5 <= N <= 51), generate a maze with side length N that follows the following requirements:
The maze must be composed of the characters
+. It must use the
| character as a vertical wall, the
- character as a horizontal wall, and if that wall turns, the character
+ should be used.
The width of the path must be one character.
The maze must turn at least four times.
The maze must have outer walls, that break at two points: the start and the end.
The maze must consist of one non-breaking path, from the start to the end.
For example, the following is a valid maze: (N = 5)
+---+ | | | | | | --+--
And for N = 7:
--+---+ | | | | | | | | | | | | | | | | +---+--
Remember, this is code-golf, so the code with the fewest number of bytes wins.