http://www.perlmonks.org?node_id=1051631


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

If you are going to build a number of random games and score them for difficulty, you could have an auto-challenge balancing routine.

  1. Save 11 random boards and sort them by difficulty rating.
  2. Have the user play the (easymode=3rd, medium=6th, hardmode=9th) ranked one.
  3. If the user wins, delete the games easier than the one just beaten, if they lost, delete the harder games.
  4. Generate replacement boards and sort them by difficulty again.
  5. Goto 2 until bored
  • Comment on Re^2: Challenge: Algorithm To Generate Bubble Blast 2 Puzzles With Difficulty