Random mutations

This commit is contained in:
Rendo 2025-11-09 15:43:03 +05:00
commit 35d186cf05
2 changed files with 22 additions and 2 deletions

View file

@ -22,11 +22,13 @@ impl Formula {
}
outputs
}
pub fn mutate(&mut self) {}
pub fn modify_tree(&mut self) -> NodeModifier {
self.tree.modify_tree()
}
pub fn modify_random_node(&mut self) -> NodeModifier {
self.tree.modify_node()
}
pub fn display_tree(&self) {
self.display_recursion(0, vec![&self.tree]);
}