add remark to AStarNode about tiebreakers
This commit is contained in:
parent
2910e405be
commit
79695ef1d6
|
@ -164,6 +164,7 @@ impl core::cmp::Ord for AStarNode {
|
|||
fn cmp(&self, other: &Self) -> core::cmp::Ordering {
|
||||
let lhs = unsafe { self.0.as_node() };
|
||||
let rhs = unsafe { other.0.as_node() };
|
||||
// FIXME: add a deterministic tiebreaker
|
||||
lhs.rating().cmp(&rhs.rating()).reverse()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue