Example #1
0
 def swap_places(self):
     """Shuffle similar components."""
     model_random.swap_places(self.cell_colors)
     model_random.swap_places(self.probability)
     for row, row_probabilities in enumerate(self.probability):
         model_random.swap_places(row_probabilities)
         self._normalize_row(row)
     self.sampler.swap_places()
     self.stamp.swap_places()
Example #2
0
 def swap_places(self):
     """Shuffle mapping table."""
     if model_random.is_mutating():
         model_random.swap_places(self.mapping)
         svg_image_list = ka_importer.get_svg_image_list(self.theme)
         for dummy in range(len(svg_image_list) / 20):
             model_random.swap_places(self.mapping)
     if model_random.is_mutating():
         model_random.swap_places(self.repeating)
Example #3
0
 def swap_places(self):
     """Shuffle similar components."""
     model_random.swap_places(self.tile_colors)
Example #4
0
 def swap_places(self):
     """Reorder steps."""
     model_random.swap_places(self.direction_steps)
Example #5
0
 def swap_places(self):
     """Shuffle similar components."""
     model_random.swap_places(self.sites_point)
     model_random.swap_places(self.sites_color)
     self.sampler.swap_places()
     self.stamp.swap_places()
 def swap_places(self):
     """Shuffle similar components."""
     model_random.swap_places(self.cell_colors)
     model_random.swap_places(self.rules)
 def swap_places(self):
     """Exchange position of buzzwords in word list"""
     model_random.swap_places(self.wordlist)
Example #8
0
 def swap_places(self):
     """Shuffle mapping table."""
     model_random.swap_places(self.mapping)