There's more than one way to do things | |
PerlMonks |
Re: Challenge: Algorithm To Generate Bubble Blast 2 Puzzles With Difficultyby Yary (Pilgrim) |
on Aug 30, 2013 at 16:06 UTC ( [id://1051656]=note: print w/replies, xml ) | Need Help?? |
Think of the problem in reverse: start with an empty field- the "win" state- and play it backwards, with shrapnel coalescing into bubbles, sometimes leaving bubbles at the shrapnel source. By tweaking the rules-in-reverse, you can generate different levels of complexity.
I haven't thought it through in your particular case, just hope it gives you new ideas.
In Section
Seekers of Perl Wisdom
|
|