Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
XP is just a number
 
PerlMonks  

Re: Challenge: Algorithm To Generate Bubble Blast 2 Puzzles With Difficulty

by choroba (Abbot)
on Sep 01, 2013 at 07:32 UTC ( #1051774=note: print w/ replies, xml ) Need Help??


in reply to Challenge: Algorithm To Generate Bubble Blast 2 Puzzles With Difficulty

What happens if a bubble is hit from different directions at the same time? Imagine a situation like this:

1 2 1 2 1 1 1
The player clicks on the middle 1 at the bottom.
1 2 1 2 ^ 1 < 0 > 1
_
1 2 1 1 ^ ^ 0 > < 0
_
0 > 2 < 0 v v 1
Does the 2 become 1 or 0?

Update: Also, what happens in the following scenario?

1 < 0 > 1 v 3 1 1 3
_
< 0 > < 0 > v v 3 1 1 3
_
3 < 0 > < 0 > 3

What happens next? Do the shrapnels explode when they meet each other in the middle?

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: Challenge: Algorithm To Generate Bubble Blast 2 Puzzles With Difficulty
Select or Download Code
Re^2: Challenge: Algorithm To Generate Bubble Blast 2 Puzzles With Difficulty
by Limbic~Region (Chancellor) on Sep 01, 2013 at 20:30 UTC
    choroba,
    In your first scenario, it becomes a 0 and explodes. Shrapnel doesn't explode when it meets each other so the 3s become 2s. You can actually play the game in "test drive mode" on Amazon here.

    Cheers - L~R

      I am not able to run the game (perhaps I need an account or an Android device?)

      However, I wrote my own implementation. You can feed it a starting setup from a file, too. I am still not sure about situations like

      v >1< ^

      but it is fun, anyway. I am still not sure how to generate "tough" initial setups, though.

      A screencast.

      لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1051774]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2014-04-19 02:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (475 votes), past polls