Skip to content

GhettoBastler/boggle-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boggle-bot

This program finds words in a 4x4 Boggle grid.

grid

Grid from Boggle.fr

demo

It performs a breadth-first search, matching letter combinations to a tree structure pregenerated from a list of valid words. I wrote this program for games in French, but you can generate your own tree using a list of word in any language. This program is written in Python 3.

Requirements

Python 3.10+

Also a list of words in the language you want to use (one word per line)

Usage

The solver needs a JSON file containing a tree of valid words. You need to generate it by passing a list of words to make_tree.py:

./make_tree.py mots.txt > tree.json

mots.txt contains a list of French words. Replace it with your own list

Start the solver by calling solver.py, passing the generated JSON file as argument:

./solver.py tree.json

Enter the letters in the grid when the program prompts you to (you can type all 16 letters on the same line, line by line, one at a time, whichever you find most practical).

Press Return to search the solutions.

By default the program waits for you to press Return before displaying a new solution. You can pass the -a option to go through each pattern automatically. Use -d SECONDS to set the delay between each word.

License

This project is licensed under the terms of the GNU GPLv3 license.

Social preview picture uses work by Wikipedia user Stilfehler (CC BY-SA 3.0)

About

Cheat at Boggle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages