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.2.tar.gz (5.2 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.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wordsearch_gen-0.1.2.tar.gz
  • Upload date:
  • Size: 5.2 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.2.tar.gz
Algorithm Hash digest
SHA256 df9f3291d37bb46a664d49562a543e5bc70a4e128a8c88e5511f5542ac751a50
MD5 e1ca15dce22e50737d4b04cbe75e5708
BLAKE2b-256 53e8ca51aa025e95dcf0164da328c74acf3b0ba8e391e3e04def8cd28fa3d33c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wordsearch_gen-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba08f0a173b46a2790a3f494b72fa34dfe1d721fd58e16f7a547d6e305677a90
MD5 3f566f8fc804039fd8c3e1950260799b
BLAKE2b-256 eee8490eb3c895f19cdda2008808341debde50307ff73f3536bb6c826f7c75e3

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