Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func pointGenerator2(word: String) -> Int {
- for aLetter in word {
- for (key, letters) in Scrabble.scrabblePoints {
- for i in letters {
- for j in i {
- if aLetter == j {
- points += key
- }
- }
- }
- }
- }
- return points
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement