I'm completley new to python, so I'm having a hard time getting started with some code we got as a framework for a homework assignment.
I'll stress that I don't want help with doing the actual homework, only some help in understanding some python concepts.
here is the code snippet:
class TilePuzzleProblem(search.Problem):
""" This class is the class for the NxN - blanks tile puzzle problem """
def __init__(self, N, blanks, initial, goal):
""" Initialize """
search.Problem.__init__(self, initial, goal)
self.N = N
self.blanks = blanks
def successor(self, state):
""" Generate the successors of the given state. Returns a list of (move, successor) pairs"""
abstract
def h(self, node):
abstract
currently the code hangs at the "abstract" part of the function h(...), but I have no Idea what an abstract is so can not understand what the problem is.
could you help point me in the right direction here? (I'm not even sure what to google for.. "python abstract function"? "python def abstract"?)
Thanks!
p.s. It is quite likely (the TA hinted at this) that the abstract has no place here at all, but I'd like to know what I'm deleting before I delete it...
-Leav