Improve tracing output
This commit is contained in:
parent
cebdee4ec7
commit
81edc8e67a
6 changed files with 53 additions and 24 deletions
|
|
@ -8,7 +8,7 @@ use crate::{
|
|||
};
|
||||
|
||||
pub struct ValidLayout {
|
||||
pub max_tries: usize,
|
||||
pub size_increases: usize,
|
||||
pub retries: usize,
|
||||
pub start_size: Position,
|
||||
pub growth: Position,
|
||||
|
|
@ -21,7 +21,7 @@ impl Layouter for ValidLayout {
|
|||
pathfinder: &P,
|
||||
rng: &mut R,
|
||||
) -> Option<LayoutResult> {
|
||||
for i in 0..self.max_tries {
|
||||
for i in 0..self.size_increases {
|
||||
let size = self.start_size + i as PositionType * self.growth;
|
||||
|
||||
if let Some(blocks) = initally_set_blocks(input, size, self.retries, rng) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue