asrayousuf / ScrabbleWordRecommender

0 stars 0 forks source link

Method to find the possible words #7

Open aravindsrivats opened 9 years ago

aravindsrivats commented 9 years ago

Based on Jayasruthi's method, we'll be creating a descending list of dictionary words based on its score. With each word in the sorted list, compare it with the input and remove the characters from the word if its present in the input. If resultant string is empty, it means the word is found. If it not empty and if blank spaces are required, the number of remaining words can be used to compare the required blank spaces.

nsparatkar commented 9 years ago

What is the input? The rack?

aravindsrivats commented 9 years ago

The input is the rack as a string without spaces and the count of blank spaces required

harr93 commented 9 years ago

The count of blanks spaces cannot be an input. The blanks will be represented by a special character and sent in along with the input.

aravindsrivats commented 9 years ago

You are gonna handle the input from the user. The user will enter the blank spaces with special character. The blank spaces should be handled from your module. You can convert the special character to count.

harr93 commented 9 years ago

Sure. We will calculate the number of occurrences within the function.

aravindsrivats commented 9 years ago

So we'll follow this method to find the list of possible words. If any questions, raise a new issue.