diff --git a/scrabble.c b/scrabble.c index f6dec68..390dec7 100644 --- a/scrabble.c +++ b/scrabble.c @@ -43,10 +43,7 @@ int get_score(string word) { word[i] = toupper(word[i]) - 65; } - } - for (int j = 0; j < length; j++) - { - score += POINTS[(int) word[j]]; + score += POINTS[(int) word[i]]; } return score; }