jonadsimon / wonder-words-generator

Generates WonderWords puzzles
Apache License 2.0
2 stars 0 forks source link

Parameterize the calling of different optimization scripts #67

Closed jonadsimon closed 2 years ago

jonadsimon commented 2 years ago

Currently have 3 (soon to be 4) different optimization scripts:

  1. base
  2. centered
  3. max_freq
  4. spiral

Need to be able to call these with different (compatible) command-line arguments so complexity doesn't blow up

jonadsimon commented 2 years ago

Can unify base/centered/max-freq scripts with the addition of a "pivot index" array, that gives the index to pivot around for each word. This is the 1st, middle, and max-freq-letter index respectively.

For the spiral-ordering, we actually need a separate script.

jonadsimon commented 2 years ago

Done in https://github.com/jonadsimon/wonder-words-generator/commit/be545e1497b8b697a427c83eff615f5ae636374f