Skip to content

Commit

Permalink
Fixed ponder bug
Browse files Browse the repository at this point in the history
  • Loading branch information
crybot committed Jun 28, 2017
1 parent 3e55e41 commit 83c3b29
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
Binary file added .vs/NapoleonPP/v15/Browse.VC.db
Binary file not shown.
Binary file added NapoleonPP.old/.vs/NapoleonPP/v15/Browse.VC.db
Binary file not shown.
20 changes: 12 additions & 8 deletions NapoleonPP.old/NapoleonPP.vcxproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
Expand All @@ -26,21 +26,21 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v120_xp</PlatformToolset>
<PlatformToolset>v141_xp</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<PlatformToolset>v120</PlatformToolset>
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<PlatformToolset>v120_xp</PlatformToolset>
<PlatformToolset>v141_xp</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
Expand All @@ -57,11 +57,15 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<Optimization>MaxSpeed</Optimization>
<AdditionalIncludeDirectories>C:\Program Files\boost\boost_1_53_0;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<IntrinsicFunctions>false</IntrinsicFunctions>
<FavorSizeOrSpeed>Neither</FavorSizeOrSpeed>
<IntrinsicFunctions>true</IntrinsicFunctions>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<WholeProgramOptimization>false</WholeProgramOptimization>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<LanguageStandard>stdcpp14</LanguageStandard>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
Expand Down
2 changes: 1 addition & 1 deletion movedatabase.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef MOVEDATABASE_H
#define MOVEDATABASE_H
#include <immintrin.h>
#include "immintrin.h"
#include "defines.h"
#include "utils.h"
#include "constants.h"
Expand Down
1 change: 1 addition & 0 deletions search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ namespace Napoleon
sendOutput = verbose;
StopSignal = false;
pondering = false;
PonderHit = false;
searchInfo.SetDepthLimit(depth_limit);

if (type == SearchType::Infinite || type == SearchType::Ponder)
Expand Down
7 changes: 3 additions & 4 deletions uci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ namespace Napoleon
}
else if (cmd == "ponderhit")
{
assert(false);
Search::PonderHit = true;
}
}
Expand All @@ -149,7 +148,7 @@ namespace Napoleon
void Uci::go(istringstream& stream)
{
string token;
SearchType type;
SearchType type = SearchType::TimePerGame;
bool san = false;

while(stream >> token)
Expand All @@ -168,12 +167,12 @@ namespace Napoleon
else if (token == "wtime")
{
stream >> Search::GameTime[PieceColor::White];
type = SearchType::TimePerGame;
//type = SearchType::TimePerGame;
}
else if (token == "btime")
{
stream >> Search::GameTime[PieceColor::Black];
type = SearchType::TimePerGame;
//type = SearchType::TimePerGame;
}
else if (token == "infinite")
{
Expand Down

0 comments on commit 83c3b29

Please sign in to comment.