summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* a few minor cleanupsjluehrs22008-02-021-4/+3
|
* stop dying on non-critical thingsjluehrs22008-02-021-6/+5
|
* make sure we test all open()s for failurejluehrs22008-02-021-5/+3
|
* make all functions without a useful return value return undefjluehrs22008-02-021-0/+8
|
* die on remove_words if we aren't using a cache (like we already do with ↵jluehrs22008-02-021-0/+3
| | | | add_words)
* add documentation to Games::Word::Wordlistjluehrs22008-02-021-23/+130
|
* allow getting random words of a specified lengthjluehrs22008-02-021-5/+19
|
* add subwords_of to return only the subpermutations that are actually wordsjluehrs22008-02-021-1/+12
|
* make sure we don't catch 0 herejluehrs22008-02-021-3/+3
|
* add is_subpermutation and all_subpermutations to do the same thing as the ↵jluehrs22008-02-021-1/+13
| | | | substring functions, except without order mattering
* probably name these correctlyjluehrs22008-02-021-3/+3
|
* add is_substring and all_substrings to mess with strings made up of (not ↵jluehrs22008-02-021-1/+28
| | | | necessarily consecutive) letters in order from a given string
* use a better algorithm for generating random permutations (one that isn't ↵jluehrs22008-02-021-13/+22
| | | | limited by the ability of the factorial of the input length to fit into 32 bits)
* make $wl->words work properly when the wordlist isn't cachedjluehrs22008-02-021-2/+4
|
* implement random_string_from, which returns a string containing random ↵jluehrs22008-02-011-1/+13
| | | | characters from some character list
* i really meant to be using shift herejluehrs22008-02-011-5/+5
|
* stop looping once we go off the end of one of the stringsjluehrs22008-02-011-0/+1
|
* add shared_letters and shared_letters_by_position for mastermind style ↵jluehrs22008-02-011-1/+41
| | | | string comparisons
* minor syntax cleanupsjluehrs22008-02-012-19/+30
|
* add methods to add and remove elements from the word list, and to get the ↵jluehrs22008-02-011-0/+34
| | | | number of words
* allow the constructor to fill up the word list from an arrayrefjluehrs22008-02-011-9/+17
|
* add words_like to search the word list for words matching a given regexjluehrs22008-01-311-0/+8
|
* add an anagrams() function to get anagrams of a wordjluehrs22008-01-311-0/+9
|
* add a function to get a list of all permutations of a stringjluehrs22008-01-311-1/+9
|
* implement internal functions for iterating over the word listjluehrs22008-01-311-0/+24
|
* move the wordlist stuff into its own filejluehrs22008-01-312-72/+160
|
* don't leave stale caches sitting around if we don't want a cachejluehrs22008-01-311-0/+1
|
* add a caching option to random_word and is_wordjluehrs22008-01-311-2/+40
|
* don't chomp words we don't care aboutjluehrs22008-01-311-1/+1
|
* better error for unable to open filejluehrs22008-01-311-2/+1
|
* add (very inefficient at the moment) functions for generating random words ↵jluehrs22008-01-311-1/+34
| | | | and for checking to see if a given string is a word. these will be optimized later.
* module stuffjluehrs22008-01-311-0/+4
|
* implement random_permutation and is_permutationjluehrs22008-01-311-2/+29
|
* Initial import of Games::Wordjluehrs22008-01-301-0/+83