I'm trying to build a small script to generate a random racing track that always connects to its start out of a fixed set of tiles.
Does anyone have any hint or know of any algorithms that can help me with this?
For better understanding:
- Give a number for available straight pieces
- Give a number for available curved pieces
- Generate a round course that always connects to its starting point without using more than the given tile numbers.