示例#1
0
文件: t_piece.py 项目: bmeares/tetris
    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")
示例#2
0
文件: l_piece.py 项目: bmeares/tetris
    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")
示例#3
0
 def __init__(self, color, row, col):
     Piece.__init__(self, color, row, col, "b")
示例#4
0
 def __init__(self, color, type):
     Piece.__init__(self, color, type)
示例#5
0
 def __init__(self, pos, color):
     Piece.__init__(self, pos, color)
     self.p_type = 'king'
示例#6
0
 def __init__(self, tile, team):
     Piece.__init__(self, tile, team)
示例#7
0
 def __init__(self, pos, color):
     Piece.__init__(self, pos, color)
     self.p_type = 'bishop'
示例#8
0
 def __init__(self, tile, player):
     Piece.__init__(self, tile, player)
     self.is_first_move = True
示例#9
0
 def __init__(self, colour, coordinate, name):
     Piece.__init__(self, colour, coordinate, name)
     self.x = coordinate[0]
     self.y = coordinate[1]
示例#10
0
 def __init__(self, color, type):
     self.firstMove = False
     Piece.__init__(self, color, type)
示例#11
0
 def __init__(self, tile, player):
     Piece.__init__(self, tile, player)