Skip to content

Instantly share code, notes, and snippets.

@jxcl
Created April 4, 2010 03:38
Show Gist options
  • Save jxcl/355068 to your computer and use it in GitHub Desktop.
Save jxcl/355068 to your computer and use it in GitHub Desktop.
def validate_word(self, word, board):
for x in range(len(board.board)):
for y in range(len(board.board[x])):
if board.board[x][y] == char:
if self.recursive_word_is_valid(word, board, (x, y)):
return True
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment