Python-based package that allows you to solve any N x M Boggle board.
Project description
Pyggle
GitHub: https://github.com/andrearcaina/pyggle
PyPi: https://pypi.org/project/pyggle/
Find all possible words given a board and words, with a visual representation of the algorithm!
Check lib/docs for package details. For an example on how to use pyggle, check lib/examples/example.py!
Installation
pip install pyggle
Usage
from pyggle import Boggle
board = [['e', 'a'], ['s', 't']]
# this is only 3000 words, but the web demo will all utilize 380k words
with open('sample_data.txt', 'r') as file:
words = [line.strip() for line in file]
boggle = Boggle(board, words)
# if you initialize without an existing words list, it will utilize the 380k words list instead
# print full dictionary
print(boggle.solver())
# print only words
print(boggle.get_words())
# print only coords
print(boggle.get_coords())
# print word: coord format
boggle.print_result()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyggle-1.0.0.tar.gz
(2.5 kB
view details)
File details
Details for the file pyggle-1.0.0.tar.gz.
File metadata
- Download URL: pyggle-1.0.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc023f43f2e5ad8bcfd65d94c5df8774be581d6a422b504347b4777c5f9d5abb
|
|
| MD5 |
de169760c6c278380e310736b7fb890e
|
|
| BLAKE2b-256 |
acb02bd3f57d0a34490c30290e6600f6ce5e4f726e932c9779d4f42ac86bc153
|