コード例 #1
0
 def makeStartingGrid(self):
     grid = util.make2DArray(5, 5, False)
     for i in range(5):
         grid[i][0] = True
         grid[i][4] = True
     for j in range(5):
         grid[0][j] = True
         grid[4][j] = True
     grid[3][3] = True
     return grid
コード例 #2
0
 def makeStartingGrid(self):
     grid = util.make2DArray(5, 5, False)
     for i in range(5):
         grid[i][0] = True
         grid[i][4] = True
     for j in range(5):
         grid[0][j] = True
         grid[4][j] = False
     grid[3][3] = True
     return grid