Created
October 29, 2012 23:27
-
-
Save saltavenger/3977308 to your computer and use it in GitHub Desktop.
scrabble word validate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
count = 0 | |
newHand= str(hand) | |
if count <= len(word): | |
for c in word: | |
if c in newHand: | |
count += 1 | |
else: | |
return False | |
if word in wordList: | |
return True | |
else: | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment