(self, row, col)
| 32 | |
| 33 | # select row and column |
| 34 | def selectrc(self, row, col): |
| 35 | if self.select: |
| 36 | result = self._move(row, col) |
| 37 | if not result: |
| 38 | self.select = None |
| 39 | |
| 40 | piece = self.board.get_piece(row, col) |
| 41 | if (piece != 0) and (piece.color == self.turn): |
| 42 | self.select = piece |
| 43 | self.valid_moves = self.board.get_valid_moves(piece) |
| 44 | return True |
| 45 | return False |
| 46 | |
| 47 | # to move the pieces |
| 48 | def _move(self, row, col): |
no test coverage detected