Wordsearch generators - source code
This is a resource of the
Click to subscribe to wordgame-programmers
These programs generically fit words (in straight lines, not wrapped
around odd paths as in Boggle) into rectangles.
The words may overlap. Left-over spaces are filled with letters, to
make it harder to find the words that were inserted. Words can read
in any direction including diagonally, and forwards and backwards.
n e l k u n d n t a s l g n o o r u n
o l l s t l a d s e u q s a b n b i c
t h i o d n o m d e r i t n o g a w e
s a m e d f o r d u l p t t i r n s i
a h o t l c e l f v c r s c d e d n g
g d l b n a o u e a h i l l s b o r o
n l n t r o d r n x m n b a a w n u l
a r e m r o t r v r r e a c r e t b a
a d w d o o t e e a a v n k d n a d k
r d p g n c p h l v l i e a a e r o k
g o o r u a o d e d o l h m m g i o i
y o r u s s r r l r n l i a t u o w m
l a t b n t t g n a s e c s l e m l e
e c n e r o l f a e w c p i u f e e l
h b e s n r a r e l l u t r m o w b a
b r o o k i n g u e d i s a e s o a s
o o a r r a d a m a s c u s h s c n y
a s s y n a m d r a h t p s c i o o y
a y n a b l a l f a l f a s h l a n d
Scott Turner's program to generate word searches. In C. This
code does not attempt to pack tightly.
Wordsrch in this directory generates word search blocks;
wsfind searches them. This was code by Dave Regan which I
heavily modified to use the DAWG data structure, and speed
up considerably. (45 minutes became 45 seconds!)
The file wsfind.c in here is, I think, a later version than ws-find.c
This is Dave Regan's much newer version of the code above,
with a web front end added. (The wordsrch.c code is inside
the SupportBin subdirectory, as it is "support code" for the
Steve Baker's code, in C++. This program does
attempt to maximise overlap between words and thus keep the
grid as small as possible. However it comes with some heavy
warnings about how it might run forever, and he suggests killing
the program after a minute and tweaking the wordlist if it
hasn't finished by then!
Fit a list of words into a 20x20 area, with as much overlap as
This is not a word search generator (it's actually more of
a crossword generator), but
if some of the input words it is given were reversed
left-for-right, this would be a very good starting point for
a maximally dense word search puzzle. The leftover squares
need only be filled in with dummy letters to finish off the
puzzle. The only limitation on this variation is that the
crozzle problem does not allow words to be placed diagonally.
- An example word grid (Spanish)
- Word Maze
(Windows program, no sources)
Windows program to create crossword and word-find puzzles.
- Java Word Search Display
Here's a pretty java front end to display your generated word-search puzzles.
- Word Lattice
Word search puzzle generator in C++
- eGames: Word Search Mania (demo) - notable for use of iSpell style word list...
Closely related to this field are Crossword generators,
and word square generators.
Return to the Archive overview.