Skip to content

Commit e166854

Browse files
committed
Resolve bugs
1 parent ec4ac3b commit e166854

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Scrabble/scrabble.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ def compute_score(word):
4949
score += score_list[char.lower()]
5050
return score
5151
raise ValueError("Invalid word")
52-
else:
53-
raise ValueError("Word should only contain alphabetic characters")
52+
raise ValueError("Word should only contain alphabetic characters")
5453

5554

5655
def player_count():
@@ -99,8 +98,6 @@ def get_input(score_board):
9998

10099
def winner(score_board):
101100
"""
102-
Determines the winner(s) based on the highest scores.
103-
104101
Args:
105102
score_board (dict): The dictionary storing the scores of each player.
106103
Returns:

0 commit comments

Comments
 (0)