def test_analyse_board(): tiles = [] for _ in range(9): tiles.append(Tile()) board = Board(tiles) board.add_entangl_tile(1) board.add_entangl_tile(2) board.tiles()[1].set_move_on_tile('x1') board.tiles()[2].set_move_on_tile('x1') board.tiles()[1].set_move_on_tile('y2') board.tiles()[2].set_move_on_tile('y2') board.collapse(1, 'x1') assert board.analyse_board() == ['-', 'x1', 'y2', '-', '-', '-', '-', '-', '-']
def test_analyse_board_empty(): tiles = [] for _ in range(9): tiles.append(Tile()) board = Board(tiles) assert board.analyse_board() == ['-', '-', '-', '-', '-', '-', '-', '-', '-']