summaryrefslogtreecommitdiffstats
path: root/lib/Games/Word.pm
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* 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-011-3/+7
|
* add a function to get a list of all permutations of a stringjluehrs22008-01-311-1/+9
|
* move the wordlist stuff into its own filejluehrs22008-01-311-72/+1
|
* 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