increase resolve
This commit is contained in:
parent
c491497129
commit
710050f01a
1 changed files with 3 additions and 4 deletions
|
|
@ -116,14 +116,13 @@ impl Robot {
|
|||
|
||||
if let Some(_) = contact(&pose, &*weapon, p_p , p_c, 0.0).unwrap() {
|
||||
peer.kill();
|
||||
}
|
||||
}
|
||||
if self.weapon.kills_user {
|
||||
self.kill(); // o7
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
pub fn policy(&mut self, sensor: &Sensor) -> bool{
|
||||
match sensor {
|
||||
Sensor::Food => self.move_step(self.policy.food),
|
||||
|
|
|
|||
Loading…
Reference in a new issue