gwsd2015 / LogiClass

0 stars 1 forks source link

Week 26: Finished 1st attempt at clue list algorithm #12

Open rolivia opened 9 years ago

rolivia commented 9 years ago

@twood02 @cctoombs

Algorithm to generate create a list of clues for puzzle

I finished writing this algorithm. Unfortunately, it runs so slow that I have no idea if it works. The gneral idea is:

  1. Add clue to list
  2. Determine if clue list is ambiguous (using |checkClueList()| )
  3. If ambiguous, go to 1. Otherwise return list

I am currently trying to see if there is a bug causing the long running time, or if the algorithm just takes to long. If it is the latter, I have a few ideas to try to optimize it.

All relevant code is located in testing/LCinterface.js and testing/clues.js

Code: