fn reset_cells(cells: &[LifeSender], random_cells: &mut RandomCells, canvas: &mut WindowCanvas) {
    canvas.set_draw_color(Color::RGB(0, 0, 0));
    canvas.clear();
    canvas.present();
    random_cells.reset_cells(cells);
}
// clear the canvas and generate a new set of alive and dead cells
clear the canvas and generate a new set of alive and dead cells
clear the canvas and generate a new set of alive and dead cells
fn reset_cells(cells: &[LifeSender], random_cells: &mut RandomCells, canvas: &mut WindowCanvas) {
    canvas.set_draw_color(Color::RGB(0, 0, 0));
    canvas.clear();
    canvas.present();
    random_cells.reset_cells(cells);
}
fn reset_cells ( cells : & [ LifeSender ] , random_cells : & mut RandomCells , canvas : & mut WindowCanvas ) { canvas . set_draw_color ( Color :: RGB ( 0 , 0 , 0 ) ) ; canvas . clear ( ) ; canvas . present ( ) ; random_cells . reset_cells ( cells ) ; }
clear the canvas and generate a new set of alive and dead cells
clear the canvas and generate a new set of alive and dead cells
cells
&[LifeSender]
random_cells
&mut RandomCells
canvas
&mut WindowCanvas