(self)
| 68 | return moves |
| 69 | |
| 70 | def inCheck(self): |
| 71 | if self.whiteToMove: |
| 72 | return self.squareUnderAttack(self.whiteKingLocation[0], self.whiteKingLocation[1]) |
| 73 | else: |
| 74 | return self.squareUnderAttack(self.blackKingLocation[0], self.blackKingLocation[1]) |
| 75 | |
| 76 | def squareUnderAttack(self, r, c): |
| 77 | self.whiteToMove = not self.whiteToMove |
no test coverage detected