Learning-Python-Team / Learning-Python-Team/word-game-tool
score_calculator.py (prev. word_to_score.py)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
The char_dict should be made global so it is accessible to all the functions.
Function: base_score ---> renamed from point_conversion
Purpose: Calculates base score of a given word
Acceptance Criteria:
- Returns base score of the word.
Function: multiplier_score
Purpose: Calculates score of a given word including any letter/word tiles multipliers passed
Acceptance Criteria:
- Returns total score of the word
- Must account for any multiplier tiles.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in score_calculator.py, formerly word_to_score.py, and inspect the existing point_conversion logic and how char_dict is used. Update the named functions so base_score returns a word's base score and multiplier_score accounts for letter and word multipliers; done means both acceptance criteria are met.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100