We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec4ac3b commit e166854Copy full SHA for e166854
Scrabble/scrabble.py
@@ -49,8 +49,7 @@ def compute_score(word):
49
score += score_list[char.lower()]
50
return score
51
raise ValueError("Invalid word")
52
- else:
53
- raise ValueError("Word should only contain alphabetic characters")
+ raise ValueError("Word should only contain alphabetic characters")
54
55
56
def player_count():
@@ -99,8 +98,6 @@ def get_input(score_board):
99
98
100
def winner(score_board):
101
"""
102
- Determines the winner(s) based on the highest scores.
103
-
104
Args:
105
score_board (dict): The dictionary storing the scores of each player.
106
Returns:
0 commit comments