Skip to main content

Python-based package that allows you to solve any N x M Boggle board.

Project description

Pyggle

made-with-python GitHub license boggle_test Actions Status

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

# 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)

# 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyggle-0.0.4.2.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file pyggle-0.0.4.2.tar.gz.

File metadata

  • Download URL: pyggle-0.0.4.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.1

File hashes

Hashes for pyggle-0.0.4.2.tar.gz
Algorithm Hash digest
SHA256 b2e0de3ecb1f256a2c1f0634058840f746f747d7aa73197a20218b9320373aaa
MD5 92c2ae982af051816191821d7ba234bb
BLAKE2b-256 9f368203d83fa01cc517809af09a82c0e155cb6371681c84c057f881eaf808d8

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