def test_rotate_type_T(self): self.create_tetromino_type_T() util.check_tetromino_state(self, self.tetromino, ["###", ".#."]) self.tetromino.rotate_right() util.check_tetromino_state(self, self.tetromino, ["#.", "##", "#."]) self.tetromino.rotate_right() util.check_tetromino_state(self, self.tetromino, [".#.", "###"]) self.tetromino.rotate_right() util.check_tetromino_state(self, self.tetromino, [".#", "##", ".#"]) self.tetromino.rotate_right() util.check_tetromino_state(self, self.tetromino, ["###", ".#."])
def test_tetromino_type_T_grid(self): tetromino = Tetromino(6, self.board) util.check_tetromino_state(self, tetromino, ["###", ".#."])
def test_tetromino_type_S_grid(self): tetromino = Tetromino(4, self.board) util.check_tetromino_state(self, tetromino, [".##", "##."])
def test_tetromino_type_Z_grid(self): tetromino = Tetromino(5, self.board) util.check_tetromino_state(self, tetromino, ["##.", ".##"])
def test_tetromino_type_I_grid(self): tetromino = Tetromino(1, self.board) util.check_tetromino_state(self, tetromino, ["#", "#", "#", "#"])