[Home] [Puzzles & Projects] [Delphi Techniques] [Math topics] [Library] [Utilities]
|
|
Problem DescriptionThis program implements a word search for word which differ from a given word by a single letter. Background & Techniques
Here is is the Mensa Calendar puzzle which prompted today's program. My
language-oriented, crossword-addicted, wife solved it in less than 10 minutes. I
got two of the three words in the line 2 puzzle in 10 minutes; then decided it
was programming time! The program and the dictionary are included in the executable zip file
download available below. Programmer's Notes:This simple program required less than 30 lines of programmer written lines of code to implement the solution.. A KeyPress event exit makes sure that the user entered word is in capital letters. The Search button sequentially retrieves all of the dictionary words of the same length as the input word. Each word retrieved is converted to all capitals, compared letter by letter with the input word and differences are counted. If the difference count = 1 after all letters have been compared, the word is added to the display list in Memo2. Running/Exploring the Program
Suggestions for Further Explorations
|
[Feedback] [Newsletters (subscribe/view)] [About me]Copyright © 2000-2018, Gary Darby All rights reserved. |