Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

9
How to generate Pipe Mania style levels?
Post Body

I'm making a game similar to Pipe Mania.

The differences being:

  • The pieces are already on the grid.
  • They start at a random rotation.
  • User must rotate the pieces to the correct orientation so the water flows through.
  • There is a start (where the water flows from) and a goal tile (the waters end point).

How would I go about generating such a system programmatically?

So the levels can be completed?

Could it be as simple as ensuring that the tiles surrounding one that is generated can all be connected? i.e if you generate a 90 degree bend tile at the very left of the grid (row 2, column 0) be sure to put a straight piece of pipe above it?

Is generating levels like this generally just a set of rules that the generator must adhere to?

I'm looking mainly for reading material/logic suggestions to give me an idea of where to get started.

Thanks in advance

Author
Account Strength
100%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
11,300
Link Karma
1,289
Comment Karma
10,011
Profile updated: 23 hours ago
Posts updated: 10 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago