Module TreeChopMutator
In: lib/charlie/tree/tree.rb

replace root by one of its children, i.e. TreeRemoveNodeMutator with the root instead of a random node.

Methods

mutate!  

Public Instance methods

[Source]

     # File lib/charlie/tree/tree.rb, line 216
216:   def mutate!
217:     return self if genes.first==:term
218:     genes.replace genes[1..-1].at_rand # replace root with child
219:     self
220:   end

[Validate]