Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import copy
- class hijo:
- estado = [[0,0,0],[0,0,0],[0,0,0]]
- calificacion = ''
- def setEstado(self,Estado):
- self.estado = copy.deepcopy(Estado) #copia el estado que se le manda
- def getEstado(self):
- return self.estado #regresa el estado interno
- def getCalificacion(self):
- return self.calificacion #regresa la calificacion del nodo
- def setCalificacion(self,numero):
- self.calificacion = numero #establece la calificacion basado en la heuristica
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement