A customizable word search puzzle generator.
Project description
WordSearch Generator
A simple word search puzzle generator in Python.
Supports horizontal, vertical, and diagonal word placements.
Returns a clean 2D array that you can further customize and display however you like.
🚀 Features
- Automatically fits all words into a square grid
- Supports custom languages (via
alphabets.py) - Places words in:
- Horizontal ↔️
- Vertical ↕️
- Diagonal ↘️ directions
- Returns a ready-to-use 2D array (no output to file or console by default)
🧪 Example
from wordsearch import WordSearch
from alphabets import Alphabets
words = ["painter", "back", "board", "cactus", "reliance"]
ws = WordSearch(words, language=Alphabets.ENGLISH)
for row in ws.grid:
print(" ".join(row))
Output: (will vary due to randomness)
P A I N T E R S E T
C R A N G E M A I P
...
🧠 Customization
Want to use different alphabets?
Check out alphabets.py to define your own language set.
You can pass it like so:
ws = WordSearch(words, language=Alphabets.SPANISH)
🤓 Who is this for?
- Educators making worksheets
- Devs wanting to visualize word data
- Puzzle nerds (you know who you are)
📋 License
MIT — feel free to use, modify, and share.
If you build something fun with it, let me know! 😄
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wordsearch_gen-0.1.1.tar.gz.
File metadata
- Download URL: wordsearch_gen-0.1.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9893e2eda7f5ad15b501c7d08a40113f5df7c324b64f102a7900b4ee5a4fde0
|
|
| MD5 |
eccb86a1040ba30e11d4f671d5548e1c
|
|
| BLAKE2b-256 |
e0be78139b9475772e715027e8efdead769b0e693e5b7f15f364a6f18593d5f8
|
File details
Details for the file wordsearch_gen-0.1.1-py3-none-any.whl.
File metadata
- Download URL: wordsearch_gen-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
064e86da84d6cc419ad1dc1c90a04956ddd6f1186d9ff226ac97d4e7f1fa6c10
|
|
| MD5 |
545407cfcbc3e4ca77bf0e0c3f83ae76
|
|
| BLAKE2b-256 |
bcff0c3e0bb1677145193b9a11575a932a8821313d986fc4f24e671afd0e2d07
|