Skip to content

Instantly share code, notes, and snippets.

@saltavenger
Created October 29, 2012 23:27
Show Gist options
  • Save saltavenger/3977308 to your computer and use it in GitHub Desktop.
Save saltavenger/3977308 to your computer and use it in GitHub Desktop.
scrabble word validate
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