From 784916726ac6fa242400f7f3c223ec4236cf33e2 Mon Sep 17 00:00:00 2001 From: winapiadmin Date: Sun, 23 Nov 2025 09:53:12 +0700 Subject: [PATCH 1/4] intial commit (and later commits not merged for impl-specifics) --- position.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/position.h b/position.h index 9f6f01f..1571ca2 100644 --- a/position.h +++ b/position.h @@ -149,7 +149,7 @@ template class HeapAllocatedValueList { }; enum class MoveGenType : uint8_t { ALL, PAWN, KNIGHT, BISHOP, ROOK, QUEEN, KING, CAPTURE }; -template || std::is_same_v || std::is_same_v>> class _Position { +template ::value>> class _Position { private: HistoryEntry current_state; From 12b9985bb3fd607d3e74336c054cb336448639d2 Mon Sep 17 00:00:00 2001 From: winapiadmin Date: Sun, 23 Nov 2025 10:05:00 +0700 Subject: [PATCH 2/4] implemented material-only key calculation --- position.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/position.h b/position.h index 1571ca2..01684f1 100644 --- a/position.h +++ b/position.h @@ -524,6 +524,8 @@ template bool is_valid() const; private: From d14aa99c9f0922f3e315bdf655d3e43198239579 Mon Sep 17 00:00:00 2001 From: winapiadmin <138602885+winapiadmin@users.noreply.github.com> Date: Sun, 30 Nov 2025 19:40:36 +0700 Subject: [PATCH 3/4] debug for ASan on linux --- .github/workflows/cmake-multi-platform.yml | 24 +++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index d56b3ac..df5957e 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -50,12 +50,22 @@ jobs: run: echo "dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" - name: Configure CMake - run: > - cmake -B ${{ steps.vars.outputs.dir }} - -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} - -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} - -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} - -S ${{ github.workspace }} + shell: bash + run: | + CXX_FLAGS="" + LINK_FLAGS="" + if [[ "${{ matrix.os }}" == "ubuntu-latest" && "${{ matrix.build_type }}" == "Debug" ]]; then + CXX_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer -g" + LINK_FLAGS="-fsanitize=address,undefined" + fi + + cmake -B ${{ steps.vars.outputs.dir }} \ + -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \ + -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \ + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ + -DCMAKE_CXX_FLAGS_DEBUG="$CXX_FLAGS" \ + -DCMAKE_EXE_LINKER_FLAGS="$LINK_FLAGS" \ + -S ${{ github.workspace }} - name: Build run: cmake --build ${{ steps.vars.outputs.dir }} --config ${{ matrix.build_type }} @@ -68,4 +78,4 @@ jobs: ctest --build-config ${{ matrix.build_type }} --verbose else ctest --verbose - fi \ No newline at end of file + fi From d46ba99efa5570c40e204b7ffa193b03d581a79c Mon Sep 17 00:00:00 2001 From: winapiadmin <138602885+winapiadmin@users.noreply.github.com> Date: Sun, 30 Nov 2025 19:43:22 +0700 Subject: [PATCH 4/4] escape paths for workflow (attempt 5 workflows) --- .github/workflows/cmake-multi-platform.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index df5957e..d2605c9 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -59,13 +59,13 @@ jobs: LINK_FLAGS="-fsanitize=address,undefined" fi - cmake -B ${{ steps.vars.outputs.dir }} \ + cmake -B "${{ steps.vars.outputs.dir }}" \ -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \ -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ -DCMAKE_CXX_FLAGS_DEBUG="$CXX_FLAGS" \ -DCMAKE_EXE_LINKER_FLAGS="$LINK_FLAGS" \ - -S ${{ github.workspace }} + -S "${{ github.workspace }}" - name: Build run: cmake --build ${{ steps.vars.outputs.dir }} --config ${{ matrix.build_type }}