Learning-Python-Team / Learning-Python-Team/word-game-tool

score_calculator.py (prev. word_to_score.py)

Open
#31 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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:

  1. 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:

  1. Returns total score of the word
  2. Must account for any multiplier tiles.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.