(self, window)
| 35 | self.king = True |
| 36 | |
| 37 | def draw(self, window): |
| 38 | radd = (sq_size // 2) - self.padding |
| 39 | pg.draw.circle(window, gray, (self.x, self.y), radd + self.outline) |
| 40 | pg.draw.circle(window, self.color, (self.x, self.y), radd) |
| 41 | if self.king: |
| 42 | window.blit( |
| 43 | crown, |
| 44 | ((self.x - crown.get_width() // 2), (self.y - crown.get_height() // 2)), |
| 45 | ) |
| 46 | |
| 47 | def move(self, row, col): |
| 48 | self.row = row |