def __init__(self, name=None, ico="·", team="neutral", location=None, matrix=None, position=None): Figure.__init__(self) self.name = name self.ico = ico self.move_list = [] self.team = team self.location = location #top bottom self.position = position self.matrix = matrix self.priority = False self.algorithm = [ Point(1, 1), Point(-1, 1), Point(-1, -1), Point(1, -1), "next", Point(1, 1), Point(1, -1) ] if location == "top": self.algorithm = self.reverse(self.algorithm)
def __init__(self): Figure.__init__(self) self.name = "Checker" self.ico = "o" self.move_algorithm = [(1, 1), (-1, 1), (-1, -1), (1, -1)] self.kill_algorithm = [(2, 2), (-2, 2), (-2, -2), (2, -2)]
def __init__(self, name, ico, team): Figure.__init__(self) self.name = "Empty" self.ico = "·" self.team = "free"