Perl - Script
Rules
In a Word Ladder:
Players get a starting word and an ending word
Starting and ending words must be the same length (PIG and HOG, or CAT and DOG)
Players change one letter at a time, attempting to move from the starting word to the ending word
Each intermediate step must be a valid word, and no proper nouns allowed!
Examples
Here are a few samples. Note that each step is a word and changes only one letter from the previous word.
FLY to CRY
Get from FLY to CRY in one step.
FLY
FRY (l r)
CRY (f c)
CAT to DOG
Turn a CAT into a DOG in two steps.
CAT
COT (a o)
DOT (c d)
DOG (t g)
Note: Without using any modules.
Regards,
asak.
---------- Post updated 04-03-18 at 10:42 AM ---------- Previous update was 04-02-18 at 07:32 PM ----------
any solutions?