mrdavenguyen / Crossword

2 stars 0 forks source link

[Grid class] Create 4 base grid patterns to allow for more variation in grid designs #23

Closed mrdavenguyen closed 3 weeks ago

mrdavenguyen commented 1 month ago

The base grid pattern should be randomly selected from 4 options:

  1. Normal (current grid pattern)
  2. Offset x (every 1st column instead of every 2nd)
  3. Offset y (every 1st row instead of every 2nd)
  4. Offset x and y (every 1st row and column instead of every 2nd)

This will require restructuring the code to create the base grid pattern before creating the word divisions, instead of during the process of creating word divisions. It will also require that the algorithm be modified to attempt to create word divisions in every row and column, instead of alternating rows and columns. Additionally, the algorithm will need to be update to handle creating divisions in the middle row and column, and will have to take into account that the algorithm may have to act on only half the cells in the middle row and column in order to maintain symmetry when mirrored.