duck57 / crossword

Generates crossword puzzles
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Make the CLI output useful [if only for prettier debugging] #2

Open duck57 opened 1 year ago

duck57 commented 1 year ago

responding to https://github.com/joshbduncan/word-search-generator/pull/26#issuecomment-1341718692


Yes, I should do just that. How I'd think of handling numbers greater than 9 is by drawing a grid, similar to https://github.com/duck57/LightbulbSharkCipher/blob/master/draw.py

That said, that's also some clunky terminal display for a crossword of significant size.

joshbduncan commented 1 year ago

A simple solution would just be to make each "grid" section 2 characters (wide) so you can handle up to 99 words.

-----------------------
       CROSSWORD
-----------------------
▓▓ 12       ▓▓ ▓▓ ▓▓ ▓▓
15                   ▓▓
13 ▓▓ ▓▓ ▓▓ ▓▓ ▓▓ ▓▓ 11 
   ▓▓ ▓▓ ▓▓ ▓▓ ▓▓ ▓▓  
   ▓▓ ▓▓ ▓▓ ▓▓ ▓▓ ▓▓  
   ▓▓ 16         
   ▓▓ 17         
▓▓ ▓▓ 14          ▓▓ ▓▓