|
-
Oct 18th, 2002, 02:51 PM
#1
Thread Starter
Hyperactive Member
Crossword Generator
I want to make a crossword generator, where you input X words and it generates a working crossword for it.
I've searched the net with little luck, so if anyone has any algorithms/source code/suggestions/tips, please let me know! I'd really appreciate it!
Thanks in advance!
Kevin
-
Oct 18th, 2002, 08:00 PM
#2
Sleep mode
I'm afraid I didn't get you .explain !
-
Oct 18th, 2002, 09:10 PM
#3
Good Ol' Platypus
I'd say it would be an interesting challenge, not from a programming point of view, but from an algorithm one! I would follow logical steps, such as:
1. Generate array from wordlist
2. Sort through all letters, find the least used one that is more than 1. (2 and up)
3. If there are any letters with two, one must be horizontal, the other vertical, and they must touch.
4. Continue on through the list until you get to the most common ones. I suppose after this you could do a little routine that would check if any of them have exact placement on two (or more!) for example:
Code:
....F..
....L.K
....A.E
....G.Y
....S..
And you had LAKES, which would normally go here:
Code:
....F..
....L.K
....A.E
....G.Y
LAKES..
But, if you look at it, would be better going here:
Code:
....F....
....LAKES
....A.E..
....G.Y..
....S....
5. And other stuff! I dunno, you'd be best to thing of some things on your own so you know what you want to code!
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Oct 19th, 2002, 04:30 AM
#4
Hyperactive Member
There's a crossword game here:
http://www.planet-source-code.com/vb...=5068&lngWId=1
Don't know if it's what you're after though.
When you say a crossword generator, do you mean that users can input their own words? If so, what do you do about the questions?
-
Oct 19th, 2002, 07:24 AM
#5
Good Ol' Platypus
I suppose the users would input words and questions, and his gen. would create the layout!
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|