Skip to content

Commit

Permalink
Fix compilation (#77)
Browse files Browse the repository at this point in the history
Bench: 9202273
  • Loading branch information
Dannyj1 authored Mar 17, 2024
1 parent fd91bb3 commit ba01830
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
cmake_minimum_required(VERSION 3.16)
set(CMAKE_CXX_STANDARD 20)
project(Zagreus)
set(ZAGREUS_VERSION_MAJOR "4")
set(ZAGREUS_VERSION_MINOR "1")
set(ZAGREUS_VERSION_MAJOR "5")
set(ZAGREUS_VERSION_MINOR "0")

# Default values
set(BUILD_FLAGS "")
Expand Down
3 changes: 2 additions & 1 deletion src/bitwise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include <iostream>
#include <random>
#include <algorithm>

namespace Zagreus {
static uint64_t kingAttacks[64]{};
Expand Down Expand Up @@ -204,7 +205,7 @@ void initializeBitboardConstants() {
zobristConstant = dis(gen);

// if constant already generated, generate a new one
if (std::find(generatedZobristConstants.begin(), generatedZobristConstants.end(), zobristConstant) != generatedZobristConstants.end()) {
if (std::ranges::find(generatedZobristConstants, zobristConstant) != generatedZobristConstants.end()) {
zobristConstant = dis(gen);
}

Expand Down

0 comments on commit ba01830

Please sign in to comment.