Skip to content

Commit

Permalink
fix build warnings in Engine.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nfmccrina committed Dec 23, 2016
1 parent 500dccd commit 6597372
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions TuxedoCat/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ std::string Engine::BuildPVString()

Move Engine::SearchRoot(Board& position, TimeControl& clock)
{
int max = 0;
int depth = 1;
std::vector<Move> availableMoves;
Move bestMove;
Expand All @@ -235,7 +234,6 @@ Move Engine::SearchRoot(Board& position, TimeControl& clock)
uint64_t nodesPerMillisecond;
std::stringstream logText;
int alpha;
int beta;

availableSearchTime = GetAvailableSearchTime(clock, position);
predictedSearchTime = 0;
Expand All @@ -257,7 +255,6 @@ Move Engine::SearchRoot(Board& position, TimeControl& clock)
{
nodeCountAtBeginningOfIteration = nodeCount;
alpha = -3000000;
beta = 3000000;
currentMaxDepth = depth;

std::vector<Move> newLevelVector;
Expand Down Expand Up @@ -414,7 +411,7 @@ int Engine::Search(Board& position, int depth)
pvArrays[currentMaxDepth - depth].clear();
pvArrays[currentMaxDepth - depth].push_back(*it);

if (pvArrays.size() > ((currentMaxDepth - depth) + 1))
if (static_cast<int>(pvArrays.size()) > ((currentMaxDepth - depth) + 1))
{
pvArrays[currentMaxDepth - depth].insert(pvArrays[currentMaxDepth - depth].end(),
pvArrays[(currentMaxDepth - depth) + 1].begin(), pvArrays[(currentMaxDepth - depth) + 1].end());
Expand Down

0 comments on commit 6597372

Please sign in to comment.