Spaces:
Runtime error
Runtime error
File size: 533 Bytes
2a68adc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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) |