Skip to content

Commit

Permalink
Add custom schema 10 - individual buckets for first rank, and the res…
Browse files Browse the repository at this point in the history
…t in half-files (lynx-chess/Lynx#893)
  • Loading branch information
eduherminio committed Aug 4, 2024
1 parent c4d8844 commit 22c9be7
Show file tree
Hide file tree
Showing 3 changed files with 2,921 additions and 1,915 deletions.
13 changes: 12 additions & 1 deletion src/engines/lynx_base.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
#pragma once

constexpr static int PSQTBucketCount = 16;
constexpr static int PSQTBucketCount = 24;

constexpr static std::array<int, 64> PSQTBucketLayout = {
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,
8, 9, 10, 11, 12, 13, 14, 15,
8, 9, 10, 11, 12, 13, 14, 15,
8, 9, 10, 11, 12, 13, 14, 15,
0, 1, 2, 3, 4, 5, 6, 7, //
};
11 changes: 0 additions & 11 deletions src/engines/lynx_constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@ std::array<int, 6> phaseValues = {0, 1, 1, 2, 4, 0};

constexpr static int EvalNormalizationCoefficient = 90;

constexpr static std::array<int, 64> PSQTBucketLayout = {
8, 9, 10, 11, 12, 13, 14, 15,
8, 9, 10, 11, 12, 13, 14, 15,
8, 9, 10, 11, 12, 13, 14, 15,
8, 9, 10, 11, 12, 13, 14, 15,
0, 1, 2, 3, 4, 5, 6, 7,
0, 1, 2, 3, 4, 5, 6, 7,
0, 1, 2, 3, 4, 5, 6, 7,
0, 1, 2, 3, 4, 5, 6, 7, //
};

constexpr static std::array<std::array<std::array<int, 64>, PSQTBucketCount>, 6> MiddleGamePositionalWhiteTables = {
MiddleGamePawnTable,
MiddleGameKnightTable,
Expand Down
Loading

0 comments on commit 22c9be7

Please sign in to comment.