Genetics basics

This commit is contained in:
Rendo 2026-03-26 01:05:53 +05:00
commit 964a8c49ad
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,21 @@
use std::collections::HashMap;
#[derive(Clone,Copy,PartialEq,Eq)]
pub struct GeneID;
pub trait Gene {}
#[derive(Default)]
pub struct PlantGenome {
pub edges: HashMap<GeneID,Vec<GeneID>>,
pub vertices: HashMap<GeneID,Box<dyn Gene>>
}
impl PlantGenome {
pub fn new() -> Self {
Self {
edges: HashMap::new(),
vertices: HashMap::new()
}
}
}

View file

@ -0,0 +1 @@
pub mod genetics;