Exemple #1
0
 def __init__(self, size: V2):
     dist = word_list.ldist.copy()
     random.shuffle(dist)
     self.size = size
     self.board = dib.bidict()
     for v in size.iter_locs():
         self.board[v] = dist.pop()
Exemple #2
0
 def __init__(self, sz: vector.V2):
     self.size = sz
     self.squares = {pos: BoardSquare() for pos in sz.iter_locs()}
     self.letters = {}