-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save our own source generator output in git
- Loading branch information
1 parent
747c248
commit 25cb751
Showing
6 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
...Lynx/Generated/Lynx.Generator/Lynx.Generator.GeneratedPackGenerator/EvaluationParams.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Lynx; | ||
|
||
static partial class EvaluationParams | ||
{ | ||
public const int IsolatedPawnPenalty = -917521; | ||
public const int OpenFileRookBonus = 131112; | ||
public const int SemiOpenFileRookBonus = 524303; | ||
public const int SemiOpenFileKingPenalty = 327656; | ||
public const int OpenFileKingPenalty = 131007; | ||
public const int KingShieldBonus = -196585; | ||
public const int BishopPairBonus = 4718622; | ||
public const int PieceProtectedByPawnBonus = 983052; | ||
public const int PieceAttackedByPawnPenalty = -2162735; | ||
} |
17 changes: 17 additions & 0 deletions
17
...enerated/Lynx.Generator/Lynx.Generator.GeneratedPackGenerator/GeneratedPackAttribute.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
|
||
namespace Lynx.Generator | ||
{ | ||
[AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = false)] | ||
internal sealed class GeneratedPackAttribute : Attribute | ||
{ | ||
public short MG { get; } | ||
public short EG { get; } | ||
|
||
public GeneratedPackAttribute(short mg, short eg) | ||
{ | ||
MG = mg; | ||
EG = eg; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters