summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* test subpermutationsjluehrs22008-02-021-0/+34
|
* 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
|
* more depsjluehrs22008-02-021-0/+1
|
* test substring functionsjluehrs22008-02-021-0/+32
|
* 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
* add another example scriptjluehrs22008-02-021-0/+12
|
* fix up the tests for the change to random_permutationjluehrs22008-02-021-17/+8
|
* 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)
* test file wordlist without cachingjluehrs22008-02-021-0/+21
|
* make $wl->words work properly when the wordlist isn't cachedjluehrs22008-02-021-2/+4
|
* add a few example utilitiesjluehrs22008-02-014-0/+44
|
* test random_string_fromjluehrs22008-02-011-0/+22
|
* 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
|
* better test outputjluehrs22008-02-011-2/+2
|
* stop looping once we go off the end of one of the stringsjluehrs22008-02-011-0/+1
|
* add test for shared_lettersjluehrs22008-02-011-0/+26
|
* 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
|
* make only the tests that require it use the system word filejluehrs22008-02-013-48/+21
|
* add and fix some testsjluehrs22008-02-013-11/+41
|
* 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 more dependenciesjluehrs22008-01-311-0/+2
|
* test the anagrams functionjluehrs22008-01-311-0/+23
|
* 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
|
* add tests for using the wordlist without keeping an in-memory cachejluehrs22008-01-312-0/+49
|
* update the tests for the wordlist objectjluehrs22008-01-314-23/+28
|
* 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
|
* update tests for the changesjluehrs22008-01-312-3/+3
|
* 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 deps to makefilejluehrs22008-01-311-1/+3
|
* oops, we don't need thisjluehrs22008-01-311-1/+0
|
* testsjluehrs22008-01-312-0/+55
|
* 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.
* add tests for random_permutation and is_permutationjluehrs22008-01-312-0/+43
|
* module stuffjluehrs22008-01-311-0/+4
|
* implement random_permutation and is_permutationjluehrs22008-01-311-2/+29
|
* Initial import of Games::Wordjluehrs22008-01-3016-0/+2187