(grid, block_size, word_size, index)
| 297 | |
| 298 | # create an index to access the grid with |
| 299 | def build_index(grid, block_size, word_size, index): |
| 300 | for number in range(block_size): |
| 301 | index.append(number) |
| 302 | if len(index) == word_size: |
| 303 | check_cell(grid, block_size, word_size, index) |
| 304 | else: |
| 305 | build_index(grid, block_size, word_size, index) |
| 306 | index.pop() |
| 307 | |
| 308 | # compares the contents of a cell along each grid axis |
| 309 | def check_cell(grid, block_size, word_size, index): |
no test coverage detected