Move the tetromino down one cell
(self)
| 113 | return lines_cleared |
| 114 | |
| 115 | def update(self): |
| 116 | """Move the tetromino down one cell""" |
| 117 | if not self.game_over: |
| 118 | if self.valid_move(self.current_piece, 0, 1, 0): |
| 119 | self.current_piece.y += 1 |
| 120 | else: |
| 121 | self.lock_piece(self.current_piece) |
| 122 | |
| 123 | def draw(self, screen): |
| 124 | """Draw the grid and the current piece""" |
no test coverage detected