Skip to content

⚖️ Custom PQST buckets: 24 symmetical II - #2666

Draft
eduherminio wants to merge 1 commit into
mainfrom
eval/psqt-buckets-24-symmetrical-2
Draft

⚖️ Custom PQST buckets: 24 symmetical II#2666
eduherminio wants to merge 1 commit into
mainfrom
eval/psqt-buckets-24-symmetrical-2

Conversation

@eduherminio

@eduherminio eduherminio commented Aug 25, 2026

Copy link
Copy Markdown
Member
-constexpr int PSQTBucketCount = 23;
+constexpr int PSQTBucketCount = 24;

 constexpr int psqtIndexCount = (64 * 6 - 16) * PSQTBucketCount * 2; // PSQT but removing pawns from 1 and 8 rank

 constexpr static std::array<int, 64> PSQTBucketLayout = {
-    15, 16, 17, 18, 19, 20, 21, 22,
-    15, 16, 17, 18, 19, 20, 21, 22,
-    15, 16, 17, 18, 19, 20, 21, 22,
-    15, 16, 17, 18, 19, 20, 21, 22,
+    23, 16, 17, 18, 19, 20, 21, 22,
+    23, 16, 17, 18, 19, 20, 21, 22,
+    23, 16, 17, 18, 19, 20, 21, 22,
+    23, 16, 17, 18, 19, 20, 21, 22,
+    15, 8, 9, 10, 11, 12, 13, 14,
     15, 8, 9, 10, 11, 12, 13, 14,
     15, 8, 9, 10, 11, 12, 13, 14,
-    0, 8, 9, 10, 11, 12, 13, 14,
     0, 1, 2, 3, 4, 5, 6, 7, //
 };

Alt to #2657

```diff
-constexpr int PSQTBucketCount = 23;
+constexpr int PSQTBucketCount = 24;

 constexpr int psqtIndexCount = (64 * 6 - 16) * PSQTBucketCount * 2; // PSQT but removing pawns from 1 and 8 rank

 constexpr static std::array<int, 64> PSQTBucketLayout = {
-    15, 16, 17, 18, 19, 20, 21, 22,
-    15, 16, 17, 18, 19, 20, 21, 22,
-    15, 16, 17, 18, 19, 20, 21, 22,
-    15, 16, 17, 18, 19, 20, 21, 22,
+    23, 16, 17, 18, 19, 20, 21, 22,
+    23, 16, 17, 18, 19, 20, 21, 22,
+    23, 16, 17, 18, 19, 20, 21, 22,
+    23, 16, 17, 18, 19, 20, 21, 22,
+    15, 8, 9, 10, 11, 12, 13, 14,
     15, 8, 9, 10, 11, 12, 13, 14,
     15, 8, 9, 10, 11, 12, 13, 14,
-    0, 8, 9, 10, 11, 12, 13, 14,
     0, 1, 2, 3, 4, 5, 6, 7, //
 };
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant