feat: print resultant land after execution
This commit is contained in:
parent
fd75476822
commit
961725d9d7
|
@ -214,5 +214,14 @@ fn main() -> io::Result<()> {
|
|||
dbg!(tree.trunk);
|
||||
}
|
||||
|
||||
println!("Resulting World\n=====");
|
||||
|
||||
for col_idx in 0..land.width {
|
||||
for row_idx in 0..land.height {
|
||||
print!("{}\t", land.map.get(&(col_idx, row_idx)).unwrap_or(&0u16));
|
||||
}
|
||||
println!();
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue