Games::Jumble

Create and solve Jumble word puzzles
Download

Games::Jumble Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Douglas Sparling
  • Publisher web site:
  • http://www.dougsparling.com

Games::Jumble Tags


Games::Jumble Description

Create and solve Jumble word puzzles Games::Jumble is a Perl module used to create and solve Jumble word puzzles.Currently Games::Jumble will create random five- and six-letter jumbled words from dictionary. Future versions of Games::Jumble will allow user to create custom jumbles by using a user defined word file with words of any length. Individual words of any length may be jumbled by using the jumble_word() method.Default number of words is 5. Default dictionary is '/usr/dict/words'. Dictionary file must contain one word per line.SYNOPSIS use Games::Jumble; my $jumble = Games::Jumble->new(); $jumble->set_num_words(6); $jumble->set_word_lengths_allowed(5,6); $jumble->set_word_lengths_not_allowed(7,8); $jumble->set_dict('/home/doug/crossword_dict/unixdict.txt'); my @jumble = $jumble->create_jumble; foreach my $word (@jumble) { print "$word\n"; } # Solve jumbled word my @good_words = $jumble->solve_word('rta'); if (@good_words) { foreach my $good_word (@good_words) { print "$good_word\n"; } } else { print "No words found\n"; } # Create jumbled word my $word = 'camel'; my $jumbled_word = $jumble->jumble_word($word); print "$jumbled_word ($word)\n"; Requirements: · Perl


Games::Jumble Related Software