示例#1
0
文件: grid.py 项目: snisarg/263C
 def __set_single_obstacles(self):
     for i in range(config.single_obstacle_count()):
         coord = (randint(0, config.grid_height()-1), randint(0, config.grid_width()-1))
         self.__set_floor(coord, OccupantType.OBSTACLE)
示例#2
0
文件: grid.py 项目: xjie0403/263C
 def single_obstacles(self):
     for i in range(config.single_obstacle_count()):
         self.grid[randint(0, config.grid_height()-1)][randint(0, config.grid_width()-1)] = GridCell(OccupantType.OBSTACLE)