Skip to content

Commit

Permalink
Update Engine.scratch
Browse files Browse the repository at this point in the history
- Increased passed pawn bonus
  • Loading branch information
ArnoHue authored Apr 9, 2024
1 parent 8b2cb35 commit a529d04
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions chess/Engine.scratch
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ WhenKeyPressed(c)

WhenKeyPressed(v)
{
Call SayAsync("Game of Kings Chess Version 6.493 (09.04.2024) by ArnoHu")(5);
Call SayAsync("Game of Kings Chess Version 6.494 (10.04.2024) by ArnoHu")(5);
}

WhenKeyPressed(t)
Expand Down Expand Up @@ -3344,7 +3344,7 @@ Define EvaluateBoardExtended1(string Depth) (warp=true)
{
If (abs((IdxToFile[BlackKingIdx] - File)) > 1)
{
EvalExtendedResult1 += (3 * (Rank - 3));
EvalExtendedResult1 += (4 * (Rank - 3));
}
}
}
Expand Down Expand Up @@ -3372,7 +3372,7 @@ Define EvaluateBoardExtended1(string Depth) (warp=true)
{
If (abs((IdxToFile[WhiteKingIdx] - File)) > 1)
{
EvalExtendedResult1 += (-3 * (6 - Rank));
EvalExtendedResult1 += (-4 * (6 - Rank));
}
}
}
Expand Down Expand Up @@ -3419,7 +3419,7 @@ Define EvaluateBoardExtended1(string Depth) (warp=true)
RightOppPawnRank = PawnAdvancePerFile[((Idx + 16) + 1)];
If (((Idx == 8) Or (RightOppPawnRank == 0)) Or (WhitePawnForwardRank < RightOppPawnRank))
{
EvalExtendedResult1 += (-5 + ((-3 * (2 + (IsEndgame * 1))) * (6 - WhitePawnForwardRank)));
EvalExtendedResult1 += (-5 + ((-3 * (2 + (IsEndgame * 2))) * (6 - WhitePawnForwardRank)));
If (IsEndgame == 1)
{
If ((BlackKingEndgameTargetIdx == 0) Or (WhitePawnForwardRank < WhiteRank))
Expand Down Expand Up @@ -3447,7 +3447,7 @@ Define EvaluateBoardExtended1(string Depth) (warp=true)
RightOppPawnRank = PawnAdvancePerFile[(Idx + 1)];
If (((Idx == 8) Or (RightOppPawnRank == 0)) Or (BlackPawnForwardRank > RightOppPawnRank))
{
EvalExtendedResult1 += (5 + ((3 * (2 + (IsEndgame * 1))) * (BlackPawnForwardRank - 3)));
EvalExtendedResult1 += (5 + ((3 * (2 + (IsEndgame * 2))) * (BlackPawnForwardRank - 3)));
If (IsEndgame == 1)
{
If ((WhiteKingEndgameTargetIdx == 0) Or (BlackPawnForwardRank > BlackRank))
Expand Down

0 comments on commit a529d04

Please sign in to comment.