Esempio n. 1
0
    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")
Esempio n. 2
0
    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")
Esempio n. 3
0
 def __init__(self, color, row, col):
     Piece.__init__(self, color, row, col, "b")
Esempio n. 4
0
 def __init__(self, color, type):
     Piece.__init__(self, color, type)
Esempio n. 5
0
 def __init__(self, pos, color):
     Piece.__init__(self, pos, color)
     self.p_type = 'king'
Esempio n. 6
0
 def __init__(self, tile, team):
     Piece.__init__(self, tile, team)
Esempio n. 7
0
 def __init__(self, pos, color):
     Piece.__init__(self, pos, color)
     self.p_type = 'bishop'
Esempio n. 8
0
 def __init__(self, tile, player):
     Piece.__init__(self, tile, player)
     self.is_first_move = True
Esempio n. 9
0
 def __init__(self, colour, coordinate, name):
     Piece.__init__(self, colour, coordinate, name)
     self.x = coordinate[0]
     self.y = coordinate[1]
Esempio n. 10
0
 def __init__(self, color, type):
     self.firstMove = False
     Piece.__init__(self, color, type)
Esempio n. 11
0
 def __init__(self, tile, player):
     Piece.__init__(self, tile, player)