organicomplex 0.7.0

Interactive complex-valued cellular automaton on 2D and 3D grids in search of that stuff - emergence, open-endedness, organicity etc.
use rand::prelude::*;
use rand_xoshiro::Xoshiro256PlusPlus;

use super::config::Config;

pub struct System {
    xrng: Xoshiro256PlusPlus
}

impl System {
    pub fn init(_config: &Config) -> Result<System, String> {
        let mut thrng = rand::rng();
        let xrng = Xoshiro256PlusPlus::from_rng(&mut thrng);
        Ok(Self{xrng})
    }

    pub fn xrng(&mut self) -> &mut Xoshiro256PlusPlus {
        &mut self.xrng
    }

    pub fn shut(&mut self) -> Result<(), String> {
        Ok(())
    }
}