Skip to content
Permalink
Browse files

Quadratic. Bench: 3276361

  • Loading branch information...
SFisGOD committed Mar 7, 2019
1 parent 1aab5b4 commit 658e0c495aa62c87120b6facabca85dca6a42e9d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/pawns.cpp
@@ -161,7 +161,7 @@ void init() {
for (int support = 0; support <= 2; ++support)
for (Rank r = RANK_2; r < RANK_8; ++r)
{
int v = 17 * support;
int v = (15 + r * r / 7) * support;
v += (Seed[r] + (phalanx ? (Seed[r + 1] - Seed[r]) / 2 : 0)) >> opposed;

Connected[opposed][phalanx][support][r] = make_score(v, v * (r - 2) / 4);

2 comments on commit 658e0c4

@ElbertoOne

This comment has been minimized.

Copy link

ElbertoOne replied Mar 8, 2019

Maybe it's an idea to start a speculative LTC for this? A similar attempt by @snicolet turned out to scale better than the STC version (but failed yellow): http://tests.stockfishchess.org/tests/view/5c2a86a70ebc592815d81499

@mstembera

This comment has been minimized.

Copy link

mstembera replied Mar 10, 2019

Good luck! If you get a yellow you could try

int v = (105 + r * r ) * support / 7;

which should do a better job at rounding.

Please sign in to comment.
You can’t perform that action at this time.