Skip to content

Commit

Permalink
Version 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lithander committed Mar 8, 2021
1 parent 09fc565 commit b774cda
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 25 deletions.
4 changes: 2 additions & 2 deletions MinimalChessEngine/Engine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<TargetFramework>netcoreapp3.1</TargetFramework>
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.2 Linux ARM</PublishDir>
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.3 Linux ARM</PublishDir>
<RuntimeIdentifier>linux-arm</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<PublishSingleFile>False</PublishSingleFile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<TargetFramework>netcoreapp3.1</TargetFramework>
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.2 Linux</PublishDir>
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.3 Linux</PublishDir>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<PublishSingleFile>True</PublishSingleFile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<TargetFramework>netcoreapp3.1</TargetFramework>
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.2 Mac</PublishDir>
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.3 Mac</PublishDir>
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<PublishSingleFile>True</PublishSingleFile>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<TargetFramework>netcoreapp3.1</TargetFramework>
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.2 Windows</PublishDir>
<PublishDir>D:\Projekte\Chess\Builds\MinimalChess 0.3 Windows</PublishDir>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<PublishSingleFile>True</PublishSingleFile>
<PublishReadyToRun>False</PublishReadyToRun>
<PublishReadyToRun>True</PublishReadyToRun>
<PublishTrimmed>True</PublishTrimmed>
</PropertyGroup>
</Project>

0 comments on commit b774cda

Please sign in to comment.