Skip to content

Simplify is_legal#879

Merged
codedeliveryservice merged 7 commits intocodedeliveryservice:mainfrom
protonspring:ps_islegal130
Apr 12, 2026
Merged

Simplify is_legal#879
codedeliveryservice merged 7 commits intocodedeliveryservice:mainfrom
protonspring:ps_islegal130

Conversation

@protonspring
Copy link
Copy Markdown
Contributor

STC
Elo | 1.25 +- 1.87 (95%)
SPRT | 8.0+0.08s Threads=1 Hash=16MB
LLR | 3.03 (-2.25, 2.89) [-2.75, 0.25]
Games | N: 32216 W: 8168 L: 8052 D: 15996
Penta | [83, 3517, 8803, 3611, 94]
https://recklesschess.space/test/13337/

Also, dramatically faster islegalperft suggests 50% speed increase (for is_legal).

bench 2718318

@protonspring
Copy link
Copy Markdown
Contributor Author

On my laptop: ./reckless_main "islegalperft 5" quit completes in about 75 seconds, whereas this patch completes the same in about 38 seconds.

bench 2718318
bench 2718318
@protonspring
Copy link
Copy Markdown
Contributor Author

jb1729

1:34 AM
the results for me :
(not very stable +avx2 machine, but ig for such a speedup it doesn't really matter)
main :
./reckless "islegalperft 5" 94,92s user 0,01s system 99% cpu 1:34,95 total
dev:
./reckless "islegalperft 5" 77,27s user 0,01s system 99% cpu 1:17,30 total

@codedeliveryservice codedeliveryservice merged commit 83855ed into codedeliveryservice:main Apr 12, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants