generated from Code-Institute-Org/p3-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdata.py
43 lines (41 loc) · 732 Bytes
/
data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"""
Dictionary containing the values for each letter in a game of Scrabble.
Also contains modifier characters (*,2,3) for purposes of string validation.
"""
LETTER_VALUES = {
'a': 1,
'b': 3,
'c': 3,
'd': 2,
'e': 1,
'f': 4,
'g': 2,
'h': 4,
'i': 1,
'j': 8,
'k': 5,
'l': 1,
'm': 3,
'n': 1,
'o': 1,
'p': 3,
'q': 10,
'r': 1,
's': 1,
't': 1,
'u': 1,
'v': 4,
'w': 4,
'x': 8,
'y': 4,
'z': 10,
# Mod values must be kept at 0 for checks and scores to function correctly!
'*': 0,
'2': 0,
'3': 0,
}
"""
Lists used to store valid words input by the user and their respective scores .
"""
scored_words = []
scores_only = []