factorio_blueprint/factorio-layout/src/genetic_algorithm_v2.rs
2025-01-30 23:22:37 +01:00

21 lines
438 B
Rust

use factorio_pathfinding::Pathfinder;
use rand::Rng;
use crate::Layouter;
pub struct GeneticAlgorithmV2 {
pub new_layouts: usize,
pub mutation_timeout: usize,
pub max_mutations: usize,
}
impl Layouter for GeneticAlgorithmV2 {
fn layout<R: Rng, P: Pathfinder>(
&self,
input: &crate::LayoutInput,
pathfinder: &P,
rng: &mut R,
) -> Option<crate::LayoutResult> {
todo!()
}
}