Sign in to follow this  

Word game problem

This topic is 1269 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone,

I have created a word game(in persian) that in this game player has a 6x6 table with random chars on each cells(this random chars are weighted ).In Farsi(?????) language we have a lots of meaningful 2 and 3 character words so with weighted random chars in table player can find lots of 2 and 3 char word but bigger word appear rarely in table.

 

The problem is that what method I must use to put bigger word in the table??

 

Thanks, excuse for bad English.

Share this post


Link to post
Share on other sites

You usually have a big list of words, and then you try to use some algorithm to randomly fit those in and hope you get something useful out of it.

 

You should google for "crossword generation algorithm" or similar because that problem is related, although you have additional constraints (the 6x6 table size limit)

 

From what I could find, people were using simple algorithms to try an place words in positions where they fit to make a puzzle, but generating multiple of them and choosing the best one as the result (one that is dense and square shaped)

 

 

Of course, you can also manually construct the puzzles but I dont know if that works for your game.

Share this post


Link to post
Share on other sites

Thanks,


You usually have a big list of words, and then you try to use some algorithm to randomly fit those in and hope you get something useful out of it.

Yes I have this library.

I must say that in this game player find a meaningful word in table and then chars of selected cells must replace with new ones.

Share this post


Link to post
Share on other sites
Sign in to follow this