Skip to content

Commit b774cda

Browse files
committed
Version 0.3
1 parent 09fc565 commit b774cda

6 files changed

Lines changed: 7 additions & 25 deletions

File tree

MinimalChessEngine/Engine.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace MinimalChessEngine
99
{
1010
class Engine
1111
{
12-
const int REPEAT_POSITION_THRESHOLD = -50;
12+
const int CONTEMPT = 0;
1313
const int MOVE_TIME_MARGIN = 10;
1414
const int BRANCHING_FACTOR_ESTIMATE = 5;
1515

@@ -159,7 +159,7 @@ private void Collect()
159159
Uci.Info(_search.Depth, score, _search.PositionsEvaluated, ElapsedMilliseconds, _search.PrincipalVariation);
160160

161161
//Go for a draw?
162-
if (_repetitions.Count > 0 && score < REPEAT_POSITION_THRESHOLD)
162+
if (_repetitions.Count > 0 && score < CONTEMPT)
163163
_best = _repetitions[0];
164164
else
165165
_best = _search.PrincipalVariation[0];

MinimalChessEngine/Properties/PublishProfiles/Linux ARM.pubxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
88
<Configuration>Release</Configuration>
99
<Platform>Any CPU</Platform>
1010
<TargetFramework>netcoreapp3.1</TargetFramework>
11-
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.2 Linux ARM</PublishDir>
11+
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.3 Linux ARM</PublishDir>
1212
<RuntimeIdentifier>linux-arm</RuntimeIdentifier>
1313
<SelfContained>true</SelfContained>
1414
<PublishSingleFile>False</PublishSingleFile>

MinimalChessEngine/Properties/PublishProfiles/Linux x64.pubxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
88
<Configuration>Release</Configuration>
99
<Platform>Any CPU</Platform>
1010
<TargetFramework>netcoreapp3.1</TargetFramework>
11-
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.2 Linux</PublishDir>
11+
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.3 Linux</PublishDir>
1212
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
1313
<SelfContained>true</SelfContained>
1414
<PublishSingleFile>True</PublishSingleFile>

MinimalChessEngine/Properties/PublishProfiles/Mac x64.pubxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
88
<Configuration>Release</Configuration>
99
<Platform>Any CPU</Platform>
1010
<TargetFramework>netcoreapp3.1</TargetFramework>
11-
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.2 Mac</PublishDir>
11+
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.3 Mac</PublishDir>
1212
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
1313
<SelfContained>true</SelfContained>
1414
<PublishSingleFile>True</PublishSingleFile>

MinimalChessEngine/Properties/PublishProfiles/Windows x64 AOT.pubxml

Lines changed: 0 additions & 18 deletions
This file was deleted.

MinimalChessEngine/Properties/PublishProfiles/Windows x64.pubxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
88
<Configuration>Release</Configuration>
99
<Platform>Any CPU</Platform>
1010
<TargetFramework>netcoreapp3.1</TargetFramework>
11-
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.2 Windows</PublishDir>
11+
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.3 Windows</PublishDir>
1212
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
1313
<SelfContained>true</SelfContained>
1414
<PublishSingleFile>True</PublishSingleFile>
15-
<PublishReadyToRun>False</PublishReadyToRun>
15+
<PublishReadyToRun>True</PublishReadyToRun>
1616
<PublishTrimmed>True</PublishTrimmed>
1717
</PropertyGroup>
1818
</Project>

0 commit comments

Comments
 (0)