Lines Matching refs:blocks
347 blocks=None): argument
351 if blocks is None:
352 self.blocks = [Block() for _ in range(width*height)]
354 self.blocks = blocks
362 range_ = range(len(self.blocks))
379 m.floor(start*len(self.blocks)),
380 m.ceil(stop*len(self.blocks)))
384 self.blocks[i] = f(self.blocks[i])
400 blocks=self.blocks.copy(),
423 blocks = []
435 start = m.floor(start * len(self.blocks)/(self.size*self.count))
436 stop = m.ceil(stop * len(self.blocks)/(self.size*self.count))
439 blocks.append(ft.reduce(
441 self.blocks[start:stop],
448 self.blocks = blocks
463 max_wear = max(b.wear for b in self.blocks)
470 self.blocks):
476 self.blocks):
479 grid = self.blocks