diff options
Diffstat (limited to 'wk2/sect2')
-rw-r--r-- | wk2/sect2/scrabble/scrabble.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/wk2/sect2/scrabble/scrabble.c b/wk2/sect2/scrabble/scrabble.c deleted file mode 100644 index b682df2..0000000 --- a/wk2/sect2/scrabble/scrabble.c +++ /dev/null @@ -1,27 +0,0 @@ -#include <ctype.h>
-#include <cs50.h>
-#include <stdio.h>
-#include <string.h>
-
-// Points assigned to each letter of the alphabet
-int POINTS[] = {1, 3, 3, 2, 1, 4, 2, 4, 1, 8, 5, 1, 3, 1, 1, 3, 10, 1, 1, 1, 1, 4, 4, 8, 4, 10};
-
-int compute_score(string word);
-
-int main(void)
-{
- // Get input words from both players
- string word1 = get_string("Player 1: ");
- string word2 = get_string("Player 2: ");
-
- // Score both words
- int score1 = compute_score(word1);
- int score2 = compute_score(word2);
-
- // TODO: Print the winner
-}
-
-int compute_score(string word)
-{
- // TODO: Compute and return score for string
-}
|