Go to file
Mike Mueller a443d66473 Fix a performance issue in _find_solutions.
WordTwist successors can take you in circles (scare > stare > scare),
so check for this condition to avoid generating overly many potential
solutions.
2012-03-02 17:04:21 -08:00
.gitignore Initial commit! 2012-02-24 00:10:33 -08:00
README Update copyright information. 2012-03-02 15:25:44 -08:00
__init__.py Initial commit! 2012-02-24 00:10:33 -08:00
config.py Initial commit! 2012-02-24 00:10:33 -08:00
plugin.py Fix a performance issue in _find_solutions. 2012-03-02 17:04:21 -08:00
test.py Initial commit! 2012-02-24 00:10:33 -08:00

README

Supybot Word Games Plugin
=========================

A few word games to play in IRC with Supybot!

These games rely on a dictionary file, default 'words.txt' in the directory
where supybot runs.  It should consist of one word per line.  The location of
this file can be set with config plugins.Wordgames.wordFile.

Commands:

    wordshrink [length]
    Start a new WordShrink game.

    wordtwist [length]
    Start a new WordTwist game.

    wordquit
    Give up on any currently running game.

A puzzle will be presented in the form a > --- > --- > d, and your job is to
come up with a response of the form b > c.  (You can optionally include the
start and end words in your response, as long as each word is separated by a
greater-than sign.)

The goal of both games is to change the word by one letter until you have
turned the starting word into the ending word.  In WordShrink, you must remove
one letter and rearrange the letters to form a new word.  In WordTwist, you
must change exactly one letter (no re-arranging) to form a new word.

Credit:

Copyright 2012 Mike Mueller <mike@subfocal.net>
Released under the WTF public license: http://sam.zoy.org/wtfpl/

Thanks to Ben Schomp <ben@benschomp.com> for the inspiration.