mutate method

  1. @override
void mutate(
  1. Genome g
)
override

Implementation

@override
void mutate(Genome g) {
  var possibleDormantConnections = g.possibleDormantConnections.toList();
  possibleDormantConnections.shuffle();
  var chosenDormantConnection = possibleDormantConnections.first;
  applyMutation(g, chosenDormantConnection);
}