The char_dict should be made global so it is accessible to all the functions.
Function: base_score ---> Acceptance Criteria: Returns base score of the word.
Function: multiplier_score ---> Acceptance Criteria: 1.) Returns total score of the word, 2.) Must account for any multiplier tiles.
Changes Incorporated to Satisfy Acceptance Criteria:
board_builder.py:
Board and score variables have been changed to global to facilitate calls outside the create_board function.
New functions created to compute the Letter Multiplier Dictionary (letter_score_calc) and Word Multiplier Dictionary ('word_score_calc`).
Function view_board has a basic representation of the board with score values. Needs further development to differentiate b/w word and letter multipliers.
score_calculator.py:
char_dict has been made a global variable.
Function letter_multiplier_check has been setup to validate and compute the new score arising from letter multiplier tiles.
Function word_multiplier_check has been setup to validate and compute the new score arising from letter and word multiplier tiles (This is due to the sequence of calculating letter multipliers followed by word multipliers).
Function multiplier_score has been setup to process inputs and make necessary function calls to the above 2 to return the final score.
Issues:
char_dict
should be made global so it is accessible to all the functions.base_score
---> Acceptance Criteria: Returns base score of the word.multiplier_score
---> Acceptance Criteria: 1.) Returns total score of the word, 2.) Must account for any multiplier tiles.Changes Incorporated to Satisfy Acceptance Criteria:
board_builder.py
:create_board
function.letter_score_calc
) and Word Multiplier Dictionary ('word_score_calc`).view_board
has a basic representation of the board with score values. Needs further development to differentiate b/w word and letter multipliers.score_calculator.py
:char_dict
has been made a global variable.letter_multiplier_check
has been setup to validate and compute the new score arising from letter multiplier tiles.word_multiplier_check
has been setup to validate and compute the new score arising from letter and word multiplier tiles (This is due to the sequence of calculating letter multipliers followed by word multipliers).multiplier_score
has been setup to process inputs and make necessary function calls to the above 2 to return the final score.Regards, Nakul K D