Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Add the given word at the location and direction. If
word_blank_indices is a list, then it tells the indices within "word"
where a blank was used. Returns a list of tuples, one for each letter:
(index in word, row, column, index, character, whether square was
blank).

src/s/c/scrabble-HEAD/test1.py   scrabble(Download)
    # With this bug we'll get "PROC" but we want "PROSAIC" (where the S is the plural
    # of "OOS"), which is longer.
    board.add_word("OOZ", Board.SIZE/2, Board.SIZE/2 - 2, HORIZONTAL)
    board.add_word("CC", Board.SIZE/2 + 1, Board.SIZE/2 - 2, HORIZONTAL)
 

src/s/c/scrabble-HEAD/score_test.py   scrabble(Download)
    # Intersecting word.
    board = Board()
    board.add_word("MILO", Board.MID_ROW, Board.MID_COL - 1, HORIZONTAL)
    solution = Solution(Board.MID_ROW - 1, Board.MID_COL + 2, VERTICAL, "DOG")
    solution.determine_score(board, dictionary)
    # Extending perpendicular word.
    board = Board()
    board.add_word("MILO", Board.MID_ROW, Board.MID_COL - 1, HORIZONTAL)
    solution = Solution(Board.MID_ROW - 3, Board.MID_COL + 3, VERTICAL, "DOGS")
    solution.determine_score(board, dictionary)