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