The word game Scrabble has a total of 100 letter tiles. I listed a dictionary of the letters in the game showing the letter and a tuple containng the frequency of the letter and its value.
# scrabble letter (frequency, value) total 100 tiles
# from http://thepixiepit.co.uk/scrabble/rules.html
scrabbleD = {
'A': (9, 1),
'B': (2, 3),
'C': (2, 3),
'D': (4, 2),
'E': (12, 1),
'F': (2, 4),
'G': (3, 2),
'H': (2, 4),
'I': (9, 1),
'J': (1, 8),
'K': (1, 5),
'L': (4, 1),
'M': (2, 3),
'N': (6, 1),
'O': (8, 1),
'P': (2, 3),
'Q': (1, 10),
'R': (6, 1),
'S': (4, 1),
'T': (6, 1),
'U': (4, 1),
'V': (2, 4),
'W': (2, 4),
'X': (1, 8),
'Y': (2, 4),
'Z': (1, 10),
'blank': (2, 0)
}
# test it ...
print "%6s %6s %6s" % ("letter", "freq", "val")
print "-"*24
for letter, (freq, val) in scrabbleD.iteritems():
print "%6s %6s %6s" % (letter, freq, val)
You can use this information to write a Python program to play Fastscrabble, a variation of the game that can be played without a board. The rules are simple:
All 100 tiles are laid on the table face down.
Each player takes a turn to expose one tile.
If any player can make a word from any of the exposed tiles, he/she says "scrabble", sets the tiles of the word aside, and counts the values to his/her score.
Players who yell "scrabble" and …