Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. import copy
  2. class hijo:
  3.     estado = [[0,0,0],[0,0,0],[0,0,0]]
  4.     calificacion = ''
  5.     def setEstado(self,Estado):        
  6.         self.estado = copy.deepcopy(Estado) #copia el estado que se le manda
  7.     def getEstado(self):
  8.         return self.estado          #regresa el estado interno
  9.     def getCalificacion(self)
  10.         return self.calificacion            #regresa la calificacion del nodo
  11.     def setCalificacion(self,numero):
  12.         self.calificacion = numero               #establece la calificacion basado en la heuristica
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement