From b774cda087be8cb4b9aa599249c82e8d6d002676 Mon Sep 17 00:00:00 2001 From: lithander Date: Mon, 8 Mar 2021 22:27:49 +0100 Subject: [PATCH] Version 0.3 --- MinimalChessEngine/Engine.cs | 4 ++-- .../PublishProfiles/Linux ARM.pubxml | 2 +- .../PublishProfiles/Linux x64.pubxml | 2 +- .../Properties/PublishProfiles/Mac x64.pubxml | 2 +- .../PublishProfiles/Windows x64 AOT.pubxml | 18 ------------------ .../PublishProfiles/Windows x64.pubxml | 4 ++-- 6 files changed, 7 insertions(+), 25 deletions(-) delete mode 100644 MinimalChessEngine/Properties/PublishProfiles/Windows x64 AOT.pubxml diff --git a/MinimalChessEngine/Engine.cs b/MinimalChessEngine/Engine.cs index ee4226a..7f8f8c8 100644 --- a/MinimalChessEngine/Engine.cs +++ b/MinimalChessEngine/Engine.cs @@ -9,7 +9,7 @@ namespace MinimalChessEngine { class Engine { - const int REPEAT_POSITION_THRESHOLD = -50; + const int CONTEMPT = 0; const int MOVE_TIME_MARGIN = 10; const int BRANCHING_FACTOR_ESTIMATE = 5; @@ -159,7 +159,7 @@ private void Collect() Uci.Info(_search.Depth, score, _search.PositionsEvaluated, ElapsedMilliseconds, _search.PrincipalVariation); //Go for a draw? - if (_repetitions.Count > 0 && score < REPEAT_POSITION_THRESHOLD) + if (_repetitions.Count > 0 && score < CONTEMPT) _best = _repetitions[0]; else _best = _search.PrincipalVariation[0]; diff --git a/MinimalChessEngine/Properties/PublishProfiles/Linux ARM.pubxml b/MinimalChessEngine/Properties/PublishProfiles/Linux ARM.pubxml index 65e9cdc..c01e8a8 100644 --- a/MinimalChessEngine/Properties/PublishProfiles/Linux ARM.pubxml +++ b/MinimalChessEngine/Properties/PublishProfiles/Linux ARM.pubxml @@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Release Any CPU netcoreapp3.1 - D:\Projekte\Chess\Builds\MinimalChess 0.2 Linux ARM + D:\Projekte\Chess\Builds\MinimalChess 0.3 Linux ARM linux-arm true False diff --git a/MinimalChessEngine/Properties/PublishProfiles/Linux x64.pubxml b/MinimalChessEngine/Properties/PublishProfiles/Linux x64.pubxml index 106f76b..c5218d1 100644 --- a/MinimalChessEngine/Properties/PublishProfiles/Linux x64.pubxml +++ b/MinimalChessEngine/Properties/PublishProfiles/Linux x64.pubxml @@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Release Any CPU netcoreapp3.1 - D:\Projekte\Chess\Builds\MinimalChess 0.2 Linux + D:\Projekte\Chess\Builds\MinimalChess 0.3 Linux linux-x64 true True diff --git a/MinimalChessEngine/Properties/PublishProfiles/Mac x64.pubxml b/MinimalChessEngine/Properties/PublishProfiles/Mac x64.pubxml index 912cc6c..c84d73d 100644 --- a/MinimalChessEngine/Properties/PublishProfiles/Mac x64.pubxml +++ b/MinimalChessEngine/Properties/PublishProfiles/Mac x64.pubxml @@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Release Any CPU netcoreapp3.1 - D:\Projekte\Chess\Builds\MinimalChess 0.2 Mac + D:\Projekte\Chess\Builds\MinimalChess 0.3 Mac osx-x64 true True diff --git a/MinimalChessEngine/Properties/PublishProfiles/Windows x64 AOT.pubxml b/MinimalChessEngine/Properties/PublishProfiles/Windows x64 AOT.pubxml deleted file mode 100644 index 8be873c..0000000 --- a/MinimalChessEngine/Properties/PublishProfiles/Windows x64 AOT.pubxml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - FileSystem - Release - Any CPU - netcoreapp3.1 - D:\Projekte\Chess\Builds\MinimalChess 0.2 Windows AOT - win-x64 - true - True - True - True - - \ No newline at end of file diff --git a/MinimalChessEngine/Properties/PublishProfiles/Windows x64.pubxml b/MinimalChessEngine/Properties/PublishProfiles/Windows x64.pubxml index 33938db..1d86c53 100644 --- a/MinimalChessEngine/Properties/PublishProfiles/Windows x64.pubxml +++ b/MinimalChessEngine/Properties/PublishProfiles/Windows x64.pubxml @@ -8,11 +8,11 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Release Any CPU netcoreapp3.1 - D:\Projekte\Chess\Builds\MinimalChess 0.2 Windows + D:\Projekte\Chess\Builds\MinimalChess 0.3 Windows win-x64 true True - False + True True \ No newline at end of file