feat: print resultant land after execution

This commit is contained in:
Nat 2024-12-10 15:30:45 -08:00
parent fd75476822
commit 961725d9d7
1 changed files with 9 additions and 0 deletions

View File

@ -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(())
}