Skip to content
Permalink
d5d831689f
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
20 lines (16 sloc) 486 Bytes
mod hello;
mod universe;
use universe::Universe;
fn main() {
hello::hello();
println!("");
let mut universe = Universe::new(8, 8);
println!("universe:\n{}", universe);
println!("universe.get_index(1,3) = {}", universe.get_index(1,3));
println!("universe.get(1,3) = {}", universe.get(1,3));
println!("universe.sum() = {}", universe.sum());
println!("");
universe.tick();
println!("universe.tick()");
println!("universe:\n{}", universe);
}