1

I have a collection of checkmated chess positions, in FEN/EPD format. Most of the time, each of these positions contains some useless pieces, that I really want to remove, in the aim of getting cleaner schemes.

Then, I'm searching for a batch possibility to check if my whole chess collection is checkmate or not. Ideally, it would be a tool/solution using DOS/CMD, because I have to clean many FEN checkmates.

I've googled for various DOS chess tools, but in vain. I also searched to use some chess engines (under cmd), Arena/WinBoard, EPD2Diag, PGN-Extract, etc. but also without success.

Here are two examples:

[FEN "3q4/6b1/4k3/4r3/3p2Q1/B1N1R3/5R2/6K1 w - - 0 1"]

[FEN "1K6/1b6/1b6/1P6/7r/7p/7Q/4qN1k w - - 0 1"]

Here, it's obviously both checkmate for White, but knowing I have few hundreds of others, how can I get a DOS batch possibility to check all in once?

2 Answers 2

2

I don't know if any such tool exists. If you want to program yourself you need to watch out for:

Change of mating theme: If you remove pieces you might get new/different mates, e.g. in:

    6rk/5Npp/8/8/8/8/2K5/7R b - - 0 1

if you remove the white knight and the black pawn on h7 you have a new mate, which might not be desirable.

Impossible positions: If you remove pieces you might end up with positions that cannot be reached in normal play. This can be as easy as positions where three pieces attack the king at the same time, but it can also be a lot more difficult. So in addition to checking for mate, you also need to run some retrograde analysis to check whether the position is legal

1

If I understand you correctly, you want to automatically simplify the mating sequence (final position minus a couple of moves) basically keeping the same mating pattern.

I think doing this automatically will be very difficult because if you remove pieces all kind of things can happen:

  • additional sidelines (loss of quality)

  • change of the theme of the mating pattern

    ... and if you don't run an engine to compare original mating sequences with simplified ones, you are in even more trouble...

BTW, are you sure that all the mates in your collection are forced and that the moves played are best play from both sides?

4
  • Thank you for your quick answer. In fact, all my FEN are final checkmated positions, so nothing to do with "mate in N" puzzles. And I just want to remove all unecessary pieces, so I need to verify, using an automatic/batch method
    – TiLapiot
    Nov 25, 2016 at 20:10
  • So you only care about the final position? Nov 25, 2016 at 20:13
  • Yes :) ...Only final position matters, where I'd like to remove all "superfluous" pieces. So : - if I remove too much pieces, there is no more checkmate - if I let some useless pieces (i.e. not involved in direct checkmate), then the theme is not clean enough. That's why I need to remove all needless pieces, one by one, then check for still-a-checkmate, Simpliflying+verification must be done automatically, using any trick (software, engine, batch, etc) That's what I search...
    – TiLapiot
    Nov 25, 2016 at 20:35
  • It is more difficult than checking for checkmate. You'd also need to check whether it is not an impossible position (retrograde analysis) Nov 25, 2016 at 23:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.