Closed aravindsrivats closed 9 years ago
We plan to use a HashMap internally still figuring it out.
Has anyone changed the naming of Word class? I'm assigning it to Aravind AR @aravindram94 Change the Word Class's variables to word and score.
We were thinking of using our original method to handle blanks.
The function in Team 1's class should not care about number of spaces. Given a key the function should get possible words.
Yes. If there are blank spaces only, it'll count and match them.
That would lead to us iterating over most or all of the sorted keys. This way we would give you the sorted filled rack and your function can lookup the possible words and return them in a Map.
You would not have to use the keys at all. All you have to do is, subtract the score of the characters in the result that our module returns which are not in the input strings.
I have a question: You pass me the string with the blanks. I calculate the number of blanks in the string. Now, do I call your generate word function with the the rack without blanks as key and number of blanks as value?
Or do I return the number of blanks to you?
You dont pass on no. of blanks to us
Closing this issue as the function is completed as decided upon.
How is the scoring going to be handled for blank tiles?