Giter VIP home page Giter VIP logo

Comments (12)

aravindsrivats avatar aravindsrivats commented on August 12, 2024

The structure for the dictionary is:
Map < String, String >
Key is the sorted word
Value is "score anagram1 anagram2 . ."

Team 1 will be creating method to find possible words based on input rack and blank spaces if any.

Team 2 will write functions like hasBlankSpace, countBlankSpace, getInputRackWithoutBlankSpace, calculateScoreWithBlankTiles which will be called from the main of Team 1.

Team 3 will write functions that will take the constraints and returns an input rack based on the constraint. You will have function that will check if the result of that input rack matches the constraint and return only the list of the words that have along with the score.

from scrabblewordrecommender.

aravindsrivats avatar aravindsrivats commented on August 12, 2024

All calls happen from Team 1 main(). All other functions must take an input and return a value/list/boolean

from scrabblewordrecommender.

ekanshmittal avatar ekanshmittal commented on August 12, 2024

Currently team 3, we have created a function
public List applyConstraint(String constraintPattern, String tiles);
which takes constraint pattern and tiles and returns all possible words.
it internally calls team 1 method to get all possible words if there is no blank tiles
else it calls team 2 method to get all possible words with blank tiles

What changes are to made ?

from scrabblewordrecommender.

aravindsrivats avatar aravindsrivats commented on August 12, 2024

No. Your functions cant call other classes. Your functions should return the final input rack to the main which will generate the result and call your checkConstraint (or some name) function which will return the list of possible strings.

from scrabblewordrecommender.

shrvenkataraman avatar shrvenkataraman commented on August 12, 2024

Go through our code and explain what you said above clearly. We can't understand what you are saying, it's too abstract.

from scrabblewordrecommender.

shrvenkataraman avatar shrvenkataraman commented on August 12, 2024

Basically, you will be passing a list of words with their scores to us -
we will check constraint and return the list of words that match the constraint from the list that you provided.

from scrabblewordrecommender.

aravindsrivats avatar aravindsrivats commented on August 12, 2024

I dont know why you are using rackWithoutBlanks as a state if its not initialised to the string we are passing. You wouldn't need that in the first place.

from scrabblewordrecommender.

aravindsrivats avatar aravindsrivats commented on August 12, 2024

Your function looks how I explained it. You just have to do the scoring mechanism now.

from scrabblewordrecommender.

ekanshmittal avatar ekanshmittal commented on August 12, 2024

according to our earlier discussions, you said you will pass list of words and their scores and we will just pattern match and return the list of words that match it. so we are not scoring anywhere

from scrabblewordrecommender.

ekanshmittal avatar ekanshmittal commented on August 12, 2024

and also it was stated that if the tiles have blanks we call team 2 method else team 1 method. that is why we are using the rackwithspaces state

from scrabblewordrecommender.

ekanshmittal avatar ekanshmittal commented on August 12, 2024

please clarify as to what is excepted and what all functions we should be calling in your classes for that functionality

from scrabblewordrecommender.

aravindsrivats avatar aravindsrivats commented on August 12, 2024

You should call the functions only in the Team 2 classes.
Team 1 main will call your functions like generateInputRackWithConstraints will add the constraint character to the input rack and give.
Team 1 main will call your function getWordsByConstraintMatch by passing the possible words which will return the possible words that match regex.

from scrabblewordrecommender.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.