[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[FWP] Anacrossagrams



Here's one we haven't done before...  :)


http://www.rinkworks.com/brainfood/5acbox.shtml


"Anacrossagrams are like miniature crossword puzzles, except the clues are
words, and what you fill into the grid is an anagram of the clue. The trick
is to figure out what order the letters go in."

Here's the first one from that page:


    1   2   3   4   5
  +---+---+---+---+---+           Across       Down
1 |   |   |   |   |   |
  +---+---+---+---+---+           1. erupt     1. risky
2 |   |   |   |   |   |           2. nymph     2. heath
  +---+---+---+---+---+           3. horse     3. spoon
3 |   |   |   |   |   |           4. soaky     4. strum
  +---+---+---+---+---+           5. twist     5. swept
4 |   |   |   |   |   |
  +---+---+---+---+---+
5 |   |   |   |   |   |
  +---+---+---+---+---+



The solutions are straightforward enough that it's not too hard to write a
Perl program to solve these.

Allow the words (and maybe even the size of the grid) to be entered by the
user, either on the command line or after a prompt.  For the solution, you
can just print the letters, you don't have to print the silly ASCII grid.
:)

Have fun!


Ronald


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe