ianfab / Makruk-Stockfish

strong UCI engine for Makruk (Thai chess, หมากรุก) based on Stockfish; superseded by https://github.com/fairy-stockfish/Fairy-Stockfish
GNU General Public License v3.0
10 stars 12 forks source link

Update endgame.cpp with mate with KNQ vs K. and mate with KBQ vs K. #5

Closed JBamro closed 6 years ago

JBamro commented 6 years ago

Mate with KNQ vs K. needs a PushToQueenCorners table to drive the loser king in to corner with same color of queen square.

Mate with KBQ vs K. in case the loser king was already in corner with same color of queen square, drive it easy in to this corner.

bench:1182696

ianfab commented 6 years ago

Thanks for your pull request. I will review the code later, but first a few general remarks:

JBamro commented 6 years ago

sorry for errors.

ianfab commented 6 years ago

No problem. You can simply push changes to the branch from which you created the PR, then github will automatically update the PR as long as it is open, so you do not need to open a new one. If you need help, let me know.

ianfab commented 6 years ago

@JBamro Do you plan to continue the work on this PR or should I take over?

ianfab commented 6 years ago

@JBamro I have applied some changes to your PR, so feedback from your side would be welcome.

I reverted the changes to the KBQK endgame because of https://github.com/ianfab/Makruk-Stockfish/issues/4#issuecomment-370153174, and I made a few minor changes in the KNQK code. In my opinion, the code for KNQK (and KBQK) looks good now, so if there are no objections, I would commit that.