diff options
author | eug-vs <eugene@eug-vs.xyz> | 2024-01-21 05:37:22 +0100 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2024-01-21 05:37:22 +0100 |
commit | 8a8542a84c2b69f19b3c28fd1a95af1bd05b2fb6 (patch) | |
tree | 12cf37ab0a207d2e1c780cce40b409b3fa61350a | |
parent | 14a58d2268e014aaeb2ce9a3c5357b3dd443a328 (diff) | |
download | chessnost-8a8542a84c2b69f19b3c28fd1a95af1bd05b2fb6.tar.gz |
feat: try not including score in ordering
-rw-r--r-- | src/grossmeister/ttable.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/grossmeister/ttable.rs b/src/grossmeister/ttable.rs index bb151b3..0c6724f 100644 --- a/src/grossmeister/ttable.rs +++ b/src/grossmeister/ttable.rs @@ -48,13 +48,7 @@ impl PartialOrd for TranspositionTableItem { return depth_ordering } - let node_ordering = self.node_type.partial_cmp(&other.node_type); - - if node_ordering != Some(Ordering::Equal) { - return node_ordering - } - - self.score.partial_cmp(&other.score) + self.node_type.partial_cmp(&other.node_type) } } |