(self)
| 89 | All move without considering checks |
| 90 | """ |
| 91 | def getAllPossibleMoves(self): |
| 92 | moves = [] |
| 93 | for r in range(len(self.board)): |
| 94 | for c in range(len(self.board[r])): |
| 95 | turn = self.board[r][c][0] # b or w based on turn |
| 96 | if(turn == 'w' and self.whiteToMove) or (turn == 'b' and not self.whiteToMove): |
| 97 | piece = self.board[r][c][1] |
| 98 | self.moveFunctions[piece](r,c, moves) |
| 99 | return moves |
| 100 | |
| 101 | |
| 102 | def getPawnMoves(self, r, c, moves): |
no outgoing calls
no test coverage detected