https://github.com/steder/words
Using Python to play a better game of Words with Friends
https://github.com/steder/words
anagrams python trie twisted words-with-friends
Last synced: 29 days ago
JSON representation
Using Python to play a better game of Words with Friends
- Host: GitHub
- URL: https://github.com/steder/words
- Owner: steder
- Created: 2012-01-21T15:17:43.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-07-17T01:38:54.000Z (almost 13 years ago)
- Last Synced: 2025-02-13T18:42:27.162Z (3 months ago)
- Topics: anagrams, python, trie, twisted, words-with-friends
- Language: Python
- Homepage: blog.penzilla.net
- Size: 719 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
------------------------
Words
------------------------I'm awful at Words with Friends and less awful at programming so here's an attempt to 'solve' Words with Friends type
problems using Python.====================
What is this?
====================* A words with Friends dictionary including points per letter.
* Python class suitable for interactive use while playing a game of Words with Friends or Scrabble. Includes:
- method to find words beginning with a given prefix
- method to find words ending with a given suffix
- method to find anagrams given a set of letters (including wildcards)=====================
TODO
=====================Currently I haven't tried to track and solve an entire WWFs board although that is clearly the next step.
Better queries like:
* "find me all words I could spell with hand 'ielrenn' that are prefixed with q, t, a, or l"
* "find all words I can spell with hand 'ielrenn' that *contain* r"
* "find all words that I can spell with 'ielrenn' that are suffixed with '*'"I'm also looking into exposing a simple a web interface so that I can share any advantages with my opponents.