Skip to content

Commit c71f794

Browse files
committed
scrabble template array
1 parent 7fbb665 commit c71f794

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

problems/scrabble/index.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ For example, if we wanted to score the word `Code`, we would note that in genera
2626

2727
### Hints
2828

29+
- Use this array at the top of your file (below the includes!) to look up letter values:
30+
31+
int POINTS[] = {1, 3, 3, 2, 1, 4, 2, 4, 1, 8, 5, 1, 3, 1,
32+
1, 3, 10, 1, 1, 1, 1, 4, 4, 8, 4, 10};
33+
2934
- You may find the functions `isupper()` and `islower()` to be helpful to you. These functions take in a character as the argument and return a boolean.
3035

3136
- Recall that computers represent characters using [ASCII](http://asciitable.com/), a standard that represents each character as a number.
@@ -54,6 +59,6 @@ Your program should behave per the examples below.
5459
Player 2: wiNNeR
5560
Player 1 wins!
5661

57-
Execute the below to evaluate the correctness of your code using `check50`. But be sure to compile and test it yourself as well!
62+
<!-- Execute the below to evaluate the correctness of your code using `check50`. But be sure to compile and test it yourself as well!
5863
59-
check50 -l minprog/checks/2022/scrabble
64+
check50 -l minprog/checks/2022/scrabble -->

0 commit comments

Comments
 (0)