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