aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2024-01-21 05:37:22 +0100
committereug-vs <eugene@eug-vs.xyz>2024-01-21 05:37:22 +0100
commit8a8542a84c2b69f19b3c28fd1a95af1bd05b2fb6 (patch)
tree12cf37ab0a207d2e1c780cce40b409b3fa61350a
parent14a58d2268e014aaeb2ce9a3c5357b3dd443a328 (diff)
downloadchessnost-8a8542a84c2b69f19b3c28fd1a95af1bd05b2fb6.tar.gz
feat: try not including score in ordering
-rw-r--r--src/grossmeister/ttable.rs8
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)
}
}