A game that chooses a random four letter word from a dictionary of valid four letter words as a base, and another as a target. Let the user make one move at a time, changing one letter from the base word to form a new base word. The player’s objective is to reach the target word.
This puzzle is called a word ladder.
The object of a word ladder is to change one word into another by altering one letter at a time and making a common, uncapitalized English word at each step. No letters may be scrambled from one step to the next.
For example, to change warm to cold in four steps, you could write.
Can you complete the six animal-related word ladders below in the number of steps indicated?
- CATS to MICE (4 steps)
- BULL to BEAR (4 steps)
- PONY to COLT (5 steps)
- FROG to TOAD (7 steps)
- LION to LAMB (7 steps)
- FAWN to DEER (7 steps)
Answers:
While other routes may be possible, here are our answers:
- CATS, MATS, MATE, MACE, MICE
- BULL, BELL, BELT, BEAT, BEAR
- PONY, POND, BOND, BOLD, BOLT, COLT
- FROG, FROM, PROM, PRAM, GRAM, GRAD, GOAD, TOAD
- LION, LIEN, LIES, LIDS, LADS, LADE, LAME, LAMB
- FAWN, PAWN, PAWS, PEWS, SEWS, SEES, SEER, DEER
Published in Chicago Tribune.
If available in Hex, the package can be installed
by adding ladder to your list of dependencies in mix.exs:
def deps do
[
{:ladder, "~> 0.1.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ladder.