Creating random puzzles

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andrew Davie

This is going to be way tricker than I thought. The idea was to plonk a bunch of cars on the playing area, jiggle them around randomly for a while, and then you have a puzzle to solve. Not so easy.  Doing all that is actually easy-peasy, but unfortunately the result is rarely a challenging puzzle.

When I plonk down the cars, the thinking was that I eventually have to be able to have a clear path for the "key" car to exit. So consider that the "starting position"; put down random cars anywhere, but always keep that key car's row blank. So, there's guaranteed a position it CAN exit.

Now, randomly move all the other cars for many moves. Hopefully things will get horrendously complicated and we have a puzzle. Voila!  Only, it doesn't happen. Yes, the row is kept clear, and yes the cars jiggle around for as long as I want. But no, the resultant "puzzle" isn't a good one.

So, gonna require more thinking. If only there were already a bunch of good levels I could use.

Anyway, here's some randomly generated puzzle screens that actually look OK-ish.  Starting to think about how to do the user-controls, too -- that's the arrow thing in the top left.