pub fn ingest_important_tasks(
        &mut self,
        month: u32,
        task_ingest_rate: u32,
    ) -> Vec<GameTaskBuilder> {
        let dist =
            rand_distr::Normal::new((month + task_ingest_rate) as f32 / 5., 2.).unwrap_throw();

        let num_tasks = (dist.sample(&mut self.rng).round() as u32).max(3);

        let base_difficulty = 4 + month / 4;
        let base_score = 4 + month as i32 / 5;
        (0..num_tasks)
            .map(|_| {
                let score = self.rng.gen_range(base_score..=(base_score + 6));
                let difficulty = self.rng.gen_range(base_difficulty..(base_difficulty + 10));
                GameTaskBuilder::new_with_deadline("", TaskKind::Normal, score, difficulty)
            })
            .collect()
    }
/// A procedure to generate multiple feature tasks
/// at the beginning of the month.
A procedure to generate multiple feature tasks
at the beginning of the month.
A procedure to generate multiple feature tasks at the beginning of the month .
pub fn ingest_important_tasks(
        &mut self,
        month: u32,
        task_ingest_rate: u32,
    ) -> Vec<GameTaskBuilder> {
        let dist =
            rand_distr::Normal::new((month + task_ingest_rate) as f32 / 5., 2.).unwrap_throw();
        let num_tasks = (dist.sample(&mut self.rng).round() as u32).max(3);
        let base_difficulty = 4 + month / 4;
        let base_score = 4 + month as i32 / 5;
        (0..num_tasks)
            .map(|_| {
                let score = self.rng.gen_range(base_score..=(base_score + 6));
                let difficulty = self.rng.gen_range(base_difficulty..(base_difficulty + 10));
                GameTaskBuilder::new_with_deadline("", TaskKind::Normal, score, difficulty)
            })
            .collect()
    }
pub fn ingest_important_tasks ( & mut self , month : u32 , task_ingest_rate : u32 , ) -> Vec < GameTaskBuilder > { let dist = rand_distr :: Normal :: new ( ( month + task_ingest_rate ) as f32 / 5. , 2. ) . unwrap_throw ( ) ; let num_tasks = ( dist . sample ( & mut self . rng ) . round ( ) as u32 ) . max ( 3 ) ; let base_difficulty = 4 + month / 4 ; let base_score = 4 + month as i32 / 5 ; ( 0 .. num_tasks ) . map ( | _ | { let score = self . rng . gen_range ( base_score ..= ( base_score + 6 ) ) ; let difficulty = self . rng . gen_range ( base_difficulty .. ( base_difficulty + 10 ) ) ; GameTaskBuilder :: new_with_deadline ( " " , TaskKind :: Normal , score , difficulty ) } ) . collect ( ) }
A procedure to generate multiple feature tasks
at the beginning of the month.
A procedure to generate multiple feature tasks at the beginning of the month .
&mut self
month
u32
task_ingest_rate
u32
&mut self
month
u32
task_ingest_rate
u32