-
Notifications
You must be signed in to change notification settings - Fork 0
maintaince pr #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
winapiadmin
wants to merge
77
commits into
main
Choose a base branch
from
maintaince_1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
maintaince pr #34
Changes from all commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
5c7a688
Delete .gitmodules
winapiadmin 2c24054
Add square mirror and flip functions, replace ASSUME with assert
winapiadmin edb8d35
Replace HeapAllocatedValueList with preallocated std::vector
winapiadmin a75bb59
Update position.h
winapiadmin 27740a2
Delete repetition.h
winapiadmin 9679bc6
Remove coverage reporting configuration
winapiadmin 51dae1f
Update types.h
winapiadmin 9731a31
Update fwd_decl.h
winapiadmin ad19011
Update position.h
winapiadmin d4624ff
Refactor chess namespace and include forward declarations
winapiadmin 36f74bb
Refactor is_zeroing and at functions in position.h
winapiadmin f63701d
Update position.cpp
winapiadmin f772fe6
fix unassignable array
winapiadmin 6558d7e
Update types.h
winapiadmin d1c489f
prevent MSVC extension
winapiadmin c737a76
Use constexpr START_FEN in _Position constructor
winapiadmin d060fa7
fix compile error
winapiadmin 3c7b880
Overload set_fen with default parameter value
winapiadmin a8b4200
Change START_FEN to use auto type deduction
winapiadmin b02b787
Update moves_io.cpp
winapiadmin 3c477e5
Improve castling move logic for chess960
winapiadmin c2b39af
Fix formatting in castling case of move handling
winapiadmin 20e44dd
Add push event trigger to clang-format workflow
winapiadmin 0c59bf0
Apply clang-format
actions-user fe6f9f2
fix compile errors
winapiadmin 31def46
Apply clang-format
actions-user d01601a
Update moves_io.cpp
winapiadmin 9053656
Add GitHub Actions workflow for CMake builds
winapiadmin 2f4c126
Update GitHub Actions to trigger on push and pull_request
winapiadmin fb6f4b6
Fix template usage in chess960 castling check
winapiadmin a62614e
Update try_compile.yml
winapiadmin bfbbef8
Update position.h
winapiadmin 03d0932
Update position.h
winapiadmin c870484
Update fwd_decl.h
winapiadmin ee29712
Apply clang-format
actions-user 10c851d
Update fwd_decl.h
winapiadmin 8f26ec0
Apply clang-format
actions-user 4763730
Update position.h
winapiadmin 85f9728
Apply clang-format
actions-user 0dcf50d
revert commit
winapiadmin a6e3844
Apply clang-format
actions-user b2f3b92
Update tests.cpp
winapiadmin 16cd43a
Apply clang-format
actions-user 2c92281
fix undefined behavior on invalid move
winapiadmin 8092f6c
Apply clang-format
actions-user f5baba8
Update clang-format.yml
winapiadmin 0bcfbdd
fix #35 (#36)
winapiadmin 41cc66c
little bit of small patches (#37)
winapiadmin 1c499b6
Update position.cpp
winapiadmin f54bc07
Update cmake-multi-platform.yml
winapiadmin ca684e9
Update try_compile.yml
winapiadmin 78c95ec
Update and rename cmake-multi-platform.yml to test.yml
winapiadmin c59195c
Update position.h
winapiadmin 18b1811
fixed (break when same hash, not counting)
winapiadmin 776d0ee
tiny more test and tidy up code
winapiadmin 0e6db85
Apply clang-format
actions-user 0d41592
Update clang-format.yml
winapiadmin d7ac346
Update test.yml
winapiadmin 0fbca1a
simplification
winapiadmin 85545c0
Apply clang-format
actions-user 8901a56
compile error fix and add new feature: disabling testing (yah look at…
winapiadmin d134ef4
Merge branch 'maintaince_1' of https://github.com/winapiadmin/chessli…
winapiadmin 599bfc1
unlocked time limit (it was a problem?)
winapiadmin 0f92269
Update test.yml
winapiadmin 8c2a1bd
Update position.cpp
winapiadmin 008b512
Apply clang-format
actions-user 9ad396e
Update position.cpp
winapiadmin e384906
Apply clang-format
actions-user 5684204
castling fix
winapiadmin 53ea3e5
Apply clang-format
actions-user 166d621
disable timeout
winapiadmin 4e2baa2
Update test.yml
winapiadmin cbc28ec
fully disable timeout
winapiadmin f6f478c
Update position.cpp
winapiadmin b32a718
Apply clang-format
actions-user 98cefa6
ignore syntactically illegal FEN castling input (clean them)
winapiadmin 551ed6e
Apply clang-format
actions-user File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ./** text=auto eol=lf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| name: test | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [ "main" ] | ||
|
|
||
| jobs: | ||
| build: | ||
| if: ${{ !endsWith(github.event.pull_request.title, 'no functional change') }} | ||
| runs-on: ${{ matrix.os }} | ||
|
|
||
| strategy: | ||
| fail-fast: true | ||
| matrix: | ||
| os: [ubuntu-latest, windows-latest] | ||
| build_type: [Debug, Release] | ||
| c_compiler: [gcc, clang, cl] | ||
|
|
||
| include: | ||
| # Windows | ||
| - os: windows-latest | ||
| c_compiler: cl | ||
| cpp_compiler: cl | ||
| - os: windows-latest | ||
| c_compiler: clang | ||
| cpp_compiler: clang++ | ||
| - os: windows-latest | ||
| c_compiler: gcc | ||
| cpp_compiler: g++ | ||
|
|
||
| # Linux | ||
| - os: ubuntu-latest | ||
| c_compiler: gcc | ||
| cpp_compiler: g++ | ||
| - os: ubuntu-latest | ||
| c_compiler: clang | ||
| cpp_compiler: clang++ | ||
|
|
||
| exclude: | ||
| - os: ubuntu-latest | ||
| c_compiler: cl | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set build dir | ||
| id: vars | ||
| shell: bash | ||
| run: echo "dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - name: Configure CMake | ||
| shell: bash | ||
| run: | | ||
| cmake -B "${{ steps.vars.outputs.dir }}" \ | ||
| -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \ | ||
| -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \ | ||
| -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | ||
| -DSANITIZERS="address,undefined" \ | ||
| -DDART_TESTING_TIMEOUT=0 \ | ||
| -S "${{ github.workspace }}" | ||
|
|
||
| - name: Build | ||
| run: cmake --build ${{ steps.vars.outputs.dir }} --config ${{ matrix.build_type }} | ||
|
|
||
| - name: Test | ||
| working-directory: ${{ steps.vars.outputs.dir }} | ||
| shell: bash | ||
| run: | | ||
| if [[ "${{ matrix.os }}" == "windows-latest" ]]; then | ||
| ctest --build-config ${{ matrix.build_type }} --verbose -j 4 --timeout 0 | ||
| else | ||
| ctest --verbose -j 4 --timeout 0 | ||
| fi | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,22 @@ | ||
| out/ | ||
| build/ | ||
| .vs/ | ||
| # Ignore everything | ||
| * | ||
|
|
||
| # Allow source and essential files | ||
| !*.cpp | ||
| !*.h | ||
| !CMakeLists.txt | ||
| !README.md | ||
| !LICENSE | ||
| !CMakeLists.txt | ||
| !.gitignore | ||
| !.gitattributes | ||
| CMakePresets.json | ||
| CMakeSettings.json | ||
| *.s | ||
| .vscode | ||
| .cache | ||
| deps/* | ||
| !deps/ | ||
| * | ||
| !.github/** | ||
| !.github/ | ||
| # Ignore build/editor junk | ||
| build/ | ||
| out/ | ||
| .vs/ | ||
| .vscode/ | ||
| .cache/ | ||
| cmake-*/ | ||
| # Ignore asm outputs | ||
| *.s |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.