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
Input is case sensitive! (for the board)
from pyggle import Boggle
board = "ea st" # or [["e", "a"], ["s", "t"]], both work
# if words is not passed as an argument of type list, will utilize 479k words (all in English)
# if official is not given as a boolean argument, find all words regardless of length
boggle = Boggle(board)
# prints word: [coords of each character] format.
boggle.print_result()
For more functions from pyggle, check lib/examples/2x2_example.py or lib/docs/api-reference.md
Output
I don't know how "ae" or "aes" or "ast" is a word, but here is where I got the 479k word list
a: [(0, 1)]
ae: [(0, 1), (0, 0)]
aes: [(0, 1), (0, 0), (1, 0)]
aet: [(0, 1), (0, 0), (1, 1)]
as: [(0, 1), (1, 0)]
ase: [(0, 1), (1, 0), (0, 0)]
ast: [(0, 1), (1, 0), (1, 1)]
at: [(0, 1), (1, 1)]
ate: [(0, 1), (1, 1), (0, 0)]
ates: [(0, 1), (1, 1), (0, 0), (1, 0)]
e: [(0, 0)]
ea: [(0, 0), (0, 1)]
east: [(0, 0), (0, 1), (1, 0), (1, 1)]
eat: [(0, 0), (0, 1), (1, 1)]
eats: [(0, 0), (0, 1), (1, 1), (1, 0)]
es: [(0, 0), (1, 0)]
est: [(0, 0), (1, 0), (1, 1)]
et: [(0, 0), (1, 1)]
eta: [(0, 0), (1, 1), (0, 1)]
etas: [(0, 0), (1, 1), (0, 1), (1, 0)]
s: [(1, 0)]
sa: [(1, 0), (0, 1)]
sae: [(1, 0), (0, 1), (0, 0)]
sat: [(1, 0), (0, 1), (1, 1)]
sate: [(1, 0), (0, 1), (1, 1), (0, 0)]
se: [(1, 0), (0, 0)]
sea: [(1, 0), (0, 0), (0, 1)]
seat: [(1, 0), (0, 0), (0, 1), (1, 1)]
set: [(1, 0), (0, 0), (1, 1)]
seta: [(1, 0), (0, 0), (1, 1), (0, 1)]
st: [(1, 0), (1, 1)]
sta: [(1, 0), (1, 1), (0, 1)]
t: [(1, 1)]
ta: [(1, 1), (0, 1)]
tae: [(1, 1), (0, 1), (0, 0)]
tas: [(1, 1), (0, 1), (1, 0)]
te: [(1, 1), (0, 0)]
tea: [(1, 1), (0, 0), (0, 1)]
teas: [(1, 1), (0, 0), (0, 1), (1, 0)]
ts: [(1, 1), (1, 0)]
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
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 pyggle-1.1.311.tar.gz.
File metadata
- Download URL: pyggle-1.1.311.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a053c171d6249bb164caf66b69c07c35465a02bd8db93774002b0f39bd4e2d9
|
|
| MD5 |
d14e0f39d5979c6587e67e5219651ea7
|
|
| BLAKE2b-256 |
943789a799e728a4f981abacdce3a7ffd2ca8aa802e7867400803d2bcdc43063
|
File details
Details for the file pyggle-1.1.311-py3-none-any.whl.
File metadata
- Download URL: pyggle-1.1.311-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9689844b16cddd39595bcfce9cd193018e6f62533c9be90c1434a3b08edc729a
|
|
| MD5 |
9f8fed71784eeb8b743ff49d08b82072
|
|
| BLAKE2b-256 |
0e752d1e3dd58d3ca0115b39109090976d094742f62d68b56390ca88fea356fd
|