-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
MobilityArea #383
MobilityArea #383
Conversation
Retry of an aborted test. A small speedup (suggested by Joergoster) might help the test pass more easily http://tests.stockfishchess.org/tests/view/5599e1960ebc590abbe1b8ca Bench # 7600729 Master # 7372460
Well done! |
Thank you guys. |
Congratulations! A real SPRT[0,6] patch after a vert loooong time. I would prefer this version to the other one becuase it is easier to simplify. For instance, once is committed I would remove the attacks, becuase are already take care in other parts of evaluation and I would just write:
|
Ooops, I have misread the code, the correct one is this:
|
Congratulations !!! |
I prefer Marco's version, although it's not functionally equivalent. I think it should be tested before to commit this patch, because it's cleaner and easier to simplify. |
@lucasart |
This 383 patch is "one simple idea", but is made of 3 elements Marco's version is really nice indeed and covers a) perfectly (but not b or c) Whatever plan we choose, it is clear that we will need to run more tests, either simplification tests, or numgame tests. We can either PLAN 2 seems natural, and will take only 2 more tests (well up to 4 since we have to run STC and LTC) Either way is fine with me. |
@Rocky640: I don't think c) is useful. It's the job of the qsearch to resolve captures, and you should write evel assuming that the position is quiet. If a pawn can capture (legally), there's a good reason why it can't. That being said, we have @mstembera: you're probably right. it's easier to just commit and test simplification after. |
Version without the capture and without the restriction on 3rd rank Bench # 7804432
Summary of the day:
|
@Rocky640: agree. a+b written using "Marco's style" seems like the right patch to commit. Whether or not the rank2/3 condition can be removed and compensated by PSQT is another test/patch to be tried after IMO. For now, it appears that the rank2/3 condition is useful. |
Agree. We did enough verifications. Thank you Lucas, and Marco for suggestions and comments which helped improve and simplify the patch. Also, a special thanks to all people who contribute workers. |
Based off of Pull request #383: Include squares occupied by some pawns in the MobilityArea a) not blocked b) on rank 4 and above c) or captures Passed STC LLR: 2.95 (-2.94,2.94) [-1.50,4.50] Total: 8157 W: 1644 L: 1516 D: 4997 And LTC LLR: 2.97 (-2.94,2.94) [0.00,6.00] Total: 26086 W: 4274 L: 4051 D: 17761 ----------- Then, a simplification test failed, trying to remove b and c) LLR: -2.95 (-2.94,2.94) [-3.00,1.00] Total: 6048 W: 1117 L: 1288 D: 3643 Another simplification test, was run to remove just (c) Passed STC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 28073 W: 5364 L: 5255 D: 17454 And LTC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 34652 W: 5448 L: 5348 D: 23856 A parameter tweak test showed that changing b) for "on rank 3 and above" does not work LLR: -2.95 (-2.94,2.94) [0.00,4.00] Total: 5233 W: 937 L: 1077 D: 3219 Finally, a small rewrite, and we have this version Include squares occupied by some pawns in the MobilityArea which are a) not blocked b) on rank 4 and above Bench: 8977899 Resolves #385
Tweak piece-square tables for horde chess
Include squares occupied by mobile pawns in the MobilityArea
Bench # 7600729
Passed STC
LLR: 2.95 (-2.94,2.94) [-1.50,4.50]
Total: 8157 W: 1644 L: 1516 D: 4997
And LTC
LLR: 2.97 (-2.94,2.94) [0.00,6.00]
Total: 26086 W: 4274 L: 4051 D: 17761