
To counteract the fact that sometimes it will randomly generate a sub-par board, we will generate many different boards in an allotted time and only keep the “best” board (in this case, the board with the most words placed). Additionally, increasing the board size will severely increase computation time.

However, increasing the number of words will increase computation time. Naturally, the more words you have, the better it will be at placing the most possible on a board. Puzzles like these: p u m p e r n i c k e l - p u m p e r n i c k e l v a - a - e - a w j m p c a y a w r e s l - s n i c k e r - a - l f s n i c k e r b z a x a - a - a - v - a f a z k e u i a b f v k d - f - c - m - e - d x f v c j f d m c n e x i - f j o r d - e - n - i d f j o r d z e j g n z n - r - d - l i p - n r r x d j a o l i p d j - c o r a l - i - i c o r a l u s t o i x w - n - i - s - m r n u e i i h o t s y w - m i s t - t - m w e x s m i s t r t u j p l a g u e - o - p l a g u e b n h k o m s - d a w n - f m n v j f p d a w n c q - m h j a e d p p r g t p j Behind the Scenes This program is actually very simple and creates completely random crosswords on the fly. Anyways, scroll down to see the code, or read on for a little primer about the process behind it. Besides, I’d like the code to fit snugly in my web framework of choice: Django the popular PHP version just wouldn’t cut it.

While I was working on it, I ran across many different scripts to accomplish this, but none of them were in my most favorite of languages: Python.
#Crossword puzzle generator generator#
Python Crossword Puzzle Generator As my next miniature project will be a crossword puzzle maker (note: domain has been sold to a nice fellow who is maintaining it) for teachers that will make random generation of crossword puzzles and word search puzzles, I thought I’d share the code I developed to create these puzzles on the fly.
