Skip to main content

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

wordsearch_gen-0.1.3.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wordsearch_gen-0.1.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file wordsearch_gen-0.1.3.tar.gz.

File metadata

  • Download URL: wordsearch_gen-0.1.3.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

Hashes for wordsearch_gen-0.1.3.tar.gz
Algorithm Hash digest
SHA256 61b0ce28e53967a5792cee839298cb64a713524b0302ae839a5a59cbf065cb1b
MD5 1187be862c0eb63d0fcb8c9cdff995da
BLAKE2b-256 546eb67470bd30f544513625d7cc59eb47c89d4a6b13fdd646a4faef598ebe91

See more details on using hashes here.

File details

Details for the file wordsearch_gen-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: wordsearch_gen-0.1.3-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

Hashes for wordsearch_gen-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2ea234068b7d143b6a8e086edeb36d71f036d5e6e2f41ebc361e88bcb1f80c97
MD5 5bf6b522836df7b5f286eb8b818efb95
BLAKE2b-256 41ff77b150113f926f81cdaeccbaea0ee200c21e8c87e2c3e9eb74f56d99bacf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page