[Date Prev][Date Next][Thread Prev][Thread Next]
[Search]
[Date Index]
[Thread Index]
Re: [FWP] Anacrossagrams
At 18:58 16/07/99 -0400, Ronald J Kimball wrote:
>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!
Have you written a program to solve these? If so, how did it cope with the
fact that there are 4 down Ss but only 3 across in the puzzle above or am I
missing something?
Fergal
==== Want to unsubscribe from Fun With Perl? Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
==== unsubscribe