Genome builder basics

This commit is contained in:
rendo 2026-03-26 13:29:28 +05:00
commit fdb5e59eff
5 changed files with 86 additions and 5 deletions

View file

@ -11,3 +11,12 @@ pub enum GeneType {
Consumer,
Modifier,
}
impl Gene {
pub fn new(place_str: impl Into<String>, kind: GeneType) -> Self {
Self {
place: place_str.into(),
kind,
}
}
}