def create_cells(self, rule):
     cells = {}
     for x in range(0, self.width, self.resolution):
         for y in range(0, self.height, self.resolution):
             cells[(x, y)] = SquareCell.create_initialized(
                 rule,
                 self.neighbourhood,
                 self.cell_state_class)
             coordinates = (x + self.resolution / 2, y + self.resolution / 2)
             cells[(x, y)].position = coordinates
             cells[(x, y)].radius = self.resolution / 2
     return cells