Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio committed Nov 27, 2023
1 parent dd987b4 commit 0d4d88f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions src/Lynx/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,34 +159,34 @@ public sealed class EngineSettings

#region Evaluation

public TaperedEvaluationTerm DoubledPawnPenalty { get; set; } = new(-3, -11);
public TaperedEvaluationTerm DoubledPawnPenalty { get; set; } = new(-5, -14);

public TaperedEvaluationTerm IsolatedPawnPenalty { get; set; } = new(-13, -10);
public TaperedEvaluationTerm IsolatedPawnPenalty { get; set; } = new(-17, -14);

public TaperedEvaluationTerm OpenFileRookBonus { get; set; } = new(42, 22);
public TaperedEvaluationTerm OpenFileRookBonus { get; set; } = new(60, 28);

public TaperedEvaluationTerm SemiOpenFileRookBonus { get; set; } = new(18, 16);
public TaperedEvaluationTerm SemiOpenFileRookBonus { get; set; } = new(25, 23);

public TaperedEvaluationTerm BishopMobilityBonus { get; set; } = new(8, 7);
public TaperedEvaluationTerm BishopMobilityBonus { get; set; } = new(10, 10);

public TaperedEvaluationTerm QueenMobilityBonus { get; set; } = new(2, 7);
public TaperedEvaluationTerm QueenMobilityBonus { get; set; } = new(3, 9);

public TaperedEvaluationTerm SemiOpenFileKingPenalty { get; set; } = new(-29, 19);
public TaperedEvaluationTerm SemiOpenFileKingPenalty { get; set; } = new(-38, 25);

public TaperedEvaluationTerm OpenFileKingPenalty { get; set; } = new(-80, 3);
public TaperedEvaluationTerm OpenFileKingPenalty { get; set; } = new(-107, 4);

public TaperedEvaluationTerm KingShieldBonus { get; set; } = new(15, -5);
public TaperedEvaluationTerm KingShieldBonus { get; set; } = new(19, -6);

public TaperedEvaluationTerm BishopPairBonus { get; set; } = new(22, 65);
public TaperedEvaluationTerm BishopPairBonus { get; set; } = new(30, 88);

public TaperedEvaluationTermByRank PassedPawnBonus { get; set; } = new(
new(0),
new(-2, 5),
new(-13, 10),
new(-12, 32),
new(13, 62),
new(38, 132),
new(53, 191),
new(-2, 7),
new(-16, 13),
new(-16, 44),
new(20, 83),
new(61, 175),
new(92, 257),
new(0));

#endregion
Expand Down
2 changes: 1 addition & 1 deletion tests/Lynx.Test/BestMove/QuiescenceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class QuiescenceTest : BaseTest
new[] { "f5c2", "f5d3", "f5h3", "f8c5", "f8a3" },
Description = "Avoid trading pawn for minor piece or sacrificing pieces for nothing")]
[TestCase("r2qkb1r/1pp2ppp/p1n2n2/1B1p1b2/3P4/2N2N2/PPP2PPP/R1BQ1RK1 w kq - 0 2", 1, 12,
new[] { "b5c6", "b5a4", "f1e1", "f3h4", "d1e1" },
new[] { "b5c6", "b5a4", "f1e1", "f3h4", "d1e1", "b5d3" },
new[] { "b5c1", "c3d5" },
Description = "Originally, it captured in c1")]
[TestCase("r1bq1b1r/ppppk2p/2n1pp2/3n2B1/3P4/P4N2/1PP2PPP/RN1QKB1R w KQ - 0 1", 1, 12,
Expand Down

0 comments on commit 0d4d88f

Please sign in to comment.