-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Small cleanups 01 #2532
Small cleanups 01 #2532
Conversation
search.cpp line 1329, can get rid of bracket at the end around !PvNode && ttPv |
|
In main.cpp, move |
Remove redundant comment in evaluate.cpp |
Line 636 in position.cpp could use check_squares() instead of st->checkSquares[] directly |
The comment "Greater bonus when landing square is occupied" near RestictedPiece can also be removed. |
the comment for shift doesn't seem accurate since we may shift more than one step. |
movegen.cpp, line 55. This comment can probably be removed. |
Changing the signature of the new |
file and line number please ? |
Bench: 4869669
2303a00
to
bc1eba0
Compare
Looks like I am too late, but the comment for shift is bitboard.h, line
357. it says we do one step, but we also do NORTH+NORTH and SOUTH+SOUTH.
…On Wed, Feb 5, 2020 at 7:44 AM Joost VandeVondele ***@***.***> wrote:
Closed #2532 <#2532>
via 0c878ad
<0c878ad>
.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2532?email_source=notifications&email_token=AHCWOSG5TMQTJDA2623QT6LRBLGFTA5CNFSM4KM7QR3KYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOWNWQSWA#event-3010267480>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHCWOSBAT5XQCSBIAHJ5HUTRBLGFTANCNFSM4KM7QR3A>
.
--
Michael T. Whiteley
mobile: 801.707.6886
|
it is still one step in a direction D, but D happens to be two squares, so I think the comment is still right. Agree ? |
This is super minor, but to me, a KING move is probably one step.
NORTH+NORTH is definitely two steps. I put a comment in the new PR so
let's move this discussion there.
|
PR to collect small patches that are close to trivial.
No functional change