Collide bots, require adjacent handoff
This commit is contained in:
parent
1220b0db23
commit
c8c9451e51
|
@ -37,10 +37,17 @@ func collide(id, pos, lane int, s State) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for _, t := range s.Teams {
|
||||||
|
for _, b := range t.Bots {
|
||||||
|
if b.Pos == pos && b.Lane == lane {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
passDistance = 2
|
passDistance = 1
|
||||||
baseAccel = 1
|
baseAccel = 1
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue