Comments (12)
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.
All calls happen from Team 1 main(). All other functions must take an input and return a value/list/boolean
from scrabblewordrecommender.
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.
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.
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.
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.
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.
Your function looks how I explained it. You just have to do the scoring mechanism now.
from scrabblewordrecommender.
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.
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.
please clarify as to what is excepted and what all functions we should be calling in your classes for that functionality
from scrabblewordrecommender.
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)
- User interaction to get input rack and constraints HOT 1
- Which character is used as Blank Tile? HOT 1
- Workflow issue - Blank Handling HOT 5
- Testing the constraint matching with the words HOT 2
- Writing method for creating the regex pattern from constraint HOT 3
- Constraint Handler Service
- Regex creation >_< HOT 1
- Sorting the dictionary based on score HOT 1
- The input structure from the user HOT 1
- Important: Word Object not used HOT 1
- Unit Test Cases HOT 2
- Team 3 Integration HOT 3
- Constraint handling function HOT 5
- Problem with return type of rankWordScores HOT 1
- APIs HOT 1
- Error with subtraction of blank scores HOT 1
- Error with returning pattern matched score HOT 1
- Sorting the returned list based on score
- Regular Expression for * and ? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrabblewordrecommender.