-
Notifications
You must be signed in to change notification settings - Fork 22
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
Include promotions in Qsearch #97
Conversation
src/main.cpp
Outdated
@@ -316,8 +316,9 @@ void generate_piece_moves(Move *const movelist, | |||
const BB all = pos.colour[0] | pos.colour[1]; | |||
const BB to_mask = only_captures ? pos.colour[1] : ~pos.colour[0]; | |||
const BB pawns = pos.colour[0] & pos.pieces[Pawn]; | |||
generate_pawn_moves( | |||
movelist, num_moves, north(pawns) & ~all & (only_captures ? 0xFF00000000000000ULL : 0xFFFFFFFFFFFF0000ULL), -8); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second mask can be written more compact as ~0
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i was looking for a way to have a more compact mask and i couldn't find one, thank you
edit: i've been informed that the compressed size doesn't change and to leave the mask as is
To make it easier to make the tournament deadline. * Bad bishop eval (kz04px#56). * Late move pruning changes (kz04px#78). * Improving variable (kz04px#83). * Include promotions in qsearch (kz04px#97). Also include kz04px#95 to make this exactly 4096 bytes, and put in tournament settings (hash/threads) that keep the size at exactly that. vs master (432c06a): ELO | 18.58 +- 9.34 (95%) SPRT | 8.0+0.08s Threads=1 Hash=64MB LLR | 2.97 (-2.94, 2.94) [0.00, 5.00] GAMES | N: 3032 W: 945 L: 783 D: 1304
To make it easier to make the tournament deadline. * Bad bishop eval (kz04px#56). * Late move pruning changes (kz04px#78). * Improving variable (kz04px#83). * Include promotions in qsearch (kz04px#97). Also include kz04px#95 to make this exactly 4096 bytes, and put in tournament settings (hash/threads) that keep the size at exactly that. vs master (432c06a): ELO | 18.58 +- 9.34 (95%) SPRT | 8.0+0.08s Threads=1 Hash=64MB LLR | 2.97 (-2.94, 2.94) [0.00, 5.00] GAMES | N: 3032 W: 945 L: 783 D: 1304
To make it easier to make the tournament deadline. * Bad bishop eval (kz04px#56). * Late move pruning changes (kz04px#78). * Improving variable (kz04px#83). * Include promotions in qsearch (kz04px#97). Also include kz04px#95 to make this exactly 4096 bytes, and put in tournament settings (hash/threads) that keep the size below target. vs master (432c06a): ELO | 18.58 +- 9.34 (95%) SPRT | 8.0+0.08s Threads=1 Hash=64MB LLR | 2.97 (-2.94, 2.94) [0.00, 5.00] GAMES | N: 3032 W: 945 L: 783 D: 1304
With the current minifier and some fiddling with the masks this is down to 6 bytes, retesting strength now. |
Rebase of kz04px#97 by PGG106, with constants tweaked to please the current minfier and get it down to 6 bytes. Score of 4ku vs master: 3413 - 3215 - 6226 [0.508] 12854 ... 4ku playing White: 1855 - 1388 - 3185 [0.536] 6428 ... 4ku playing Black: 1558 - 1827 - 3041 [0.479] 6426 ... White vs Black: 3682 - 2946 - 6226 [0.529] 12854 Elo difference: 5.4 +/- 4.3, LOS: 99.2 %, DrawRatio: 48.4 % SPRT: llr 2.95 (100.0%), lbound -2.94, ubound 2.94 - H1 was accepted
I put up my rebase+tweak in another pull. |
yeah the change actually saves space, my bad for trusting twipply and not doing this before |
Thanks. |
6/14