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.0.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.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wordsearch_gen-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 656e02dacdacd301cc3f07d465e63af9ef6c5c9688296b98bc8ffc9a9e5aa582
MD5 168ec683fb6fa6fc2a57ffa8677a8cb0
BLAKE2b-256 3173e048bb718bc47d4eb86970114f070dfebd474abac8b3b8c92bbbdaa67544

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wordsearch_gen-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f4b0a75838d1a740d35d400237688964af297845e094f0011a94f635257a8ca
MD5 49c7a61e1147d8d4c23e5d0d00df7c7f
BLAKE2b-256 6e1545e45963fa2dd0fbd4f33004e1106a2658cb26ff6e930d0184da44e6323d

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