def __init__(self, color, x, y, grid): Pieces.__init__(self, x, y, color, grid)
def __init__(self, name = "King", color="BLACK", position = (0,0)): Pieces.__init__(self, name, color, position) self.checked = False self.checkmated = False self.type = "King"
def __init__(self, color, x, y, grid): Pieces.__init__(self, x, y, color, grid) self.prevx = self.revWidth.get(self.width.get(self.x) - 1) self.nextx = self.revWidth.get(self.width.get(self.x) + 1)
def __init__(self, x, y, grid): Pieces.__init__(self, x, y, "n", grid)
def __init__(self, name = "Knight", color="BLACK", position = (0,0)): Pieces.__init__(self, name, color, position) self.weight = 15 self.type = "Knight"
def __init__(self, name = "Pawn", color="BLACK", position = (0,0)): Pieces.__init__(self, name, color, position) self.weight = 10 self.threat = 10 self.type = "Pawn"