def __init__(self): Piece.__init__(self) self.squares[1][2].pieceStatus = True self.squares[2][1].pieceStatus = True self.squares[2][2].pieceStatus = True self.squares[2][3].pieceStatus = True self.set_color("blue")
def __init__(self): Piece.__init__(self) self.squares[0][1].pieceStatus = True self.squares[1][1].pieceStatus = True self.squares[2][1].pieceStatus = True self.squares[2][2].pieceStatus = True # [ # [0, 1, 0, 0] # [0, 1, 0, 0] # [0, 1, 1, 0] # [0, 0, 0, 0] # ] self.set_color("green")
def __init__(self, color, row, col): Piece.__init__(self, color, row, col, "b")
def __init__(self, color, type): Piece.__init__(self, color, type)
def __init__(self, pos, color): Piece.__init__(self, pos, color) self.p_type = 'king'
def __init__(self, tile, team): Piece.__init__(self, tile, team)
def __init__(self, pos, color): Piece.__init__(self, pos, color) self.p_type = 'bishop'
def __init__(self, tile, player): Piece.__init__(self, tile, player) self.is_first_move = True
def __init__(self, colour, coordinate, name): Piece.__init__(self, colour, coordinate, name) self.x = coordinate[0] self.y = coordinate[1]
def __init__(self, color, type): self.firstMove = False Piece.__init__(self, color, type)
def __init__(self, tile, player): Piece.__init__(self, tile, player)