Skip to content

Commit

Permalink
fix: comment out printlns
Browse files Browse the repository at this point in the history
fix: require a local installation of krabmaga for reproduction
  • Loading branch information
Carbonhell committed Mar 3, 2024
1 parent 1767fbb commit b198a4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion antsforaging/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
krabmaga = "0.4.*"
krabmaga = {path = "../../krABMaga"}

[features]
visualization = ["krabmaga/visualization"]
Expand Down
6 changes: 3 additions & 3 deletions flockers/src/model/bird.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ impl Agent for Bird {
let loc_y = toroidal_transform(self.loc.y + dy, height);

self.loc = Real2D { x: loc_x, y: loc_y };
if state.step == 200 {
println!("bird {} step {} - cohesion {}, avoidance {}, consistency {}, randomness {}, mom {}, loc_x {} loc_y {}", self.id, state.step, cohesion, avoidance, consistency, randomness, mom, loc_x, loc_y);
}
// if state.step == 200 {
// println!("bird {} step {} - cohesion {}, avoidance {}, consistency {}, randomness {}, mom {}, loc_x {} loc_y {}", self.id, state.step, cohesion, avoidance, consistency, randomness, mom, loc_x, loc_y);
// }
drop(vec);
state
.field1
Expand Down

0 comments on commit b198a4e

Please sign in to comment.