Hi all,
I have a prolog assignment to do a crossword. I am a very new to all this and I thought perhaps someone will have some free time to help me.
The question in my assignment is this:
1. Choose the number of rows and columns and form an empty grid of that size
2. Choose a set of words that could appear in the puzzle - the dictionary
3. Randomly choose a word from the dictionary and a direction either down or across
4. Try to fit th chosen word in the current grid in the direction chosen
5. Repear from step 3 until puzzle is complete
Any type of help will very much be appreciated
I have a prolog assignment to do a crossword. I am a very new to all this and I thought perhaps someone will have some free time to help me.
The question in my assignment is this:
1. Choose the number of rows and columns and form an empty grid of that size
2. Choose a set of words that could appear in the puzzle - the dictionary
3. Randomly choose a word from the dictionary and a direction either down or across
4. Try to fit th chosen word in the current grid in the direction chosen
5. Repear from step 3 until puzzle is complete
Any type of help will very much be appreciated