def get_piece(self, board, pieces): '''Function returning the piece to be placed by the opponent, can be copied to the other players''' if self.change > (16-len(pieces)): #return super(MinimaxPlayer, self).get_piece(board, pieces) return NovicePlayer.get_piece(self, board, pieces) if self.placePiece: return self.placePiece else: return NovicePlayer.get_piece(self, board, pieces)
def get_piece(self, board, pieces): '''Function returning the piece to be placed by the opponent, can be copied to the other players''' if self.change > (16 - len(pieces)): #return super(MinimaxPlayer, self).get_piece(board, pieces) return NovicePlayer.get_piece(self, board, pieces) if self.placePiece: return self.placePiece else: return NovicePlayer.get_piece(self, board, pieces)