fix mvs
This commit is contained in:
parent
14254e44ba
commit
2586b43294
@ -86,10 +86,12 @@ impl Ord for MoveValueStats {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let (s_cw, o_cw) = (self.chance_win(), other.chance_win());
|
let (s_cw, o_cw) = (self.chance_win(), other.chance_win());
|
||||||
if s_cw > o_cw {
|
if s_cw.is_some() | o_cw.is_some() {
|
||||||
return Ordering::Greater;
|
if s_cw > o_cw {
|
||||||
} else if o_cw > s_cw {
|
return Ordering::Greater;
|
||||||
return Ordering::Less;
|
} else if o_cw > s_cw {
|
||||||
|
return Ordering::Less;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self.value.cmp(&other.value)
|
self.value.cmp(&other.value)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user