Skip to content

loafey/aoc_table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aoc_table

A (hastily written) library for running AoC tasks in parallel, with a fancy timer that updates in real time :-).

Example usage

use table_gen::TableGen;

fn main() {
    TableGen::new("Howdy AOC_2022 Solver :-) ")
        .add(1, rand::random::<f32>, || {
            std::thread::sleep(std::time::Duration::from_secs_f32(rand::random::<f32>()));
            rand::random::<f32>()
        })
        .add(2, rand::random::<i32>, rand::random::<bool>)
        .add(5, || "Different", || "types!")
        .add_next(|| "Different", || "types!")
        .run();

    TableGen::new("Howdy AOC_2022 Solver :-) ")
        .add(2, rand::random::<i32>, rand::random::<bool>)
        .add(5, || "Different", || "types!")
        .run_day(2);

    TableGen::new("Howdy AOC_2022 Solver :-) ")
        .add(2, rand::random::<i32>, rand::random::<bool>)
        .add(6, || "Different", || "types!")
        .run_current_day();
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors