crossword / test.py
Ali Abid
first commit
2a68adc
raw
history blame
533 Bytes
import game_manager
import random
random.seed(2)
game_manager.SIZE = 8
XXX = None
grid = [
[XXX, "s", XXX, XXX, XXX, XXX, XXX, XXX],
[XXX, "h", XXX, XXX, XXX, "t", XXX, XXX],
["l", "o", "n", "e", "l", "y", XXX, XXX],
[XXX, "n", XXX, XXX, XXX, "l", XXX, XXX],
[XXX, "e", XXX, XXX, XXX, "e", "n", "d"],
[XXX, XXX, XXX, XXX, XXX, "r", XXX, XXX],
[XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX],
[XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX],
]
clues = game_manager.find_clues(grid, 7)
for c in clues:
print(c)