コード例 #1
0
    def __init__(self, length, width, bombCnt):
        """Constructor
        Initialises inter variables
        """
        ##Board Object
        self.gameBoard = Board()
        self.cheatBoard = Board()

        ##Length of board
        self.length = length
        ##Width of board
        self.width = width
        ##How many Bombs there are in game
        self.bombCnt = bombCnt
コード例 #2
0
 def __init__(self, length, width, bombCnt):
     """Constructor
     Initialises inter variables
     """
     self.gameBoard = Board()
     self.length = length
     self.width = width
     self.bombCnt = bombCnt