Beispiel #1
0
 def test_get_size(self):
     for i in range(1, 10):
         self.assertEqual(Block.blank(i).get_size(), i)
Beispiel #2
0
 def blank(board_size, block_size) -> 'Board':
     return Board([[Block.blank(block_size) for _ in range(board_size)]
                   for _ in range(board_size)])