Closed duck57 closed 1 year ago
This looks great! I'll try and get it merged this evening. Nice work 👍
And, just an FYI, I've got a TUI (Text User Interface) built with Textual that allows you to play a WordSearch right in your terminal (see below). I have it setup as an optional install at the moment (e.g. pip install word-search-generator[play]
)... If installed it can be accessed through the CLI using the --play
flag. It is something I hacked together in a few hours trying to learn Textual but it works pretty well.
…hacking around to make a front end is also how I discovered this bug. I was working on a web front end and discovered that no matter how hard I tried, I could NOT get the secret words to stop going East. My project reminded me how much I hate starting HTML+CSS projects from scratch. It's a simple Flask application with no database. It supports pretty much everything I'd want—I now need to make it look pretty (and add a way to output PDF once you see a generation you like in the preview). Not looking forward to remembering how to deploy a new app to my server (mostly because I do it infrequently enough that best practices have changed from the last time).
I keep wanting to try Textual but never find a good reason to use it. There was a Pokémon Go map admin project from long ago, but I've long ago lost steam at wanting to maintain it.
In semi-related news, I had to scratch my own itch at adding injected words this evening.
https://github.com/duck57/word-search-generator/tree/forced-words
Currently, I have two commits:
If I do revisit that branch, I need to remember to edit one of the word placement functions in generate.py to add the forced words first. They currently function like normal words (either hidden or secret) but with custom directions.
Give Render a try for hosting. It's free (if you don't need SQL) and easy to setup. I moved a few things over to it after Heroku started charging for everything. Here's an example of a basic Flask app I have running there.
Additionally,