Skip to content

Commit

Permalink
fix compil warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tryingsomestuff committed May 13, 2020
1 parent d76ccc4 commit ea8b8ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/definition.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ typedef uint64_t u_int64_t;
#include <unistd.h>
#endif

const std::string MinicVersion = "dev";
const std::string MinicVersion = "2.25";

// *** options
#define WITH_UCI
Expand Down
2 changes: 1 addition & 1 deletion Source/skill.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// from Stockfish implementation
namespace Skill {
inline bool enabled() { return DynamicConfig::level > 0 && DynamicConfig::level < 100; } // 0 is random mover !
inline DepthType limitedDepth() { return DepthType(1 + 2 * std::sqrt(std::max(0u,DynamicConfig::level-20))); }
inline DepthType limitedDepth() { return DepthType(1 + 2 * std::sqrt(std::max(0,int(DynamicConfig::level-20)))); }
Move pick(std::vector<RootScores> & multiPVMoves);
static inline unsigned int Elo2Level(){ return std::max(0,(DynamicConfig::strength - 500))/29;}
}

0 comments on commit ea8b8ca

Please sign in to comment.