5

I was using Apronus to make an new chess puzzle for Puzzling Stack Exchange, but then it did something odd. Take a look here:

[FEN ""]
1. Nh3 f5 2. e4 fxe4 3. d3 exd3 4. Be2 Kf7 5. Qd2 dxe2 6. O-O

It's letting the white king castle through a square that is attacked by a black pawn; that is an illegal move!

(Note that our replayer is not built to detect checks and whatnot, so I am able to show it here just fine. It just shouldn’t be happening in a properly built PGN editor, which Apronus is,

Does anyone have any idea why this is happening?

  • 2
    Short answer: because the developers are either bad chess players or bad software developers! – David Apr 5 '19 at 7:05
7

I happen to be the author of the chessboard editor under discussion. Let me clarify the issue.

This editor is supposed to enforce legal moves but it has a bug which prevents it from being able to make a pawn capture onto the final rank. Therefore it cannot notice that a black chessman controls the f1 square. If you place a black bishop on the a6-f1 diagonal then it won't allow White to castle.

There is a newer chessboard editor that is free from this bug: https://www.apronus.com/chess/puzzle/editor.php?editpuzzle=0, which is meant as a powerful puzzle editor but it can serve as a PGN editor, too.

The "position setup" interface can be used to illustrate an arbitrary sequence of chessboards, not necessarily legal or illegal moves. If you tick the checkbox "Animation sequence" you will see that it keeps a record of all board positions like frames in a movie. It allows you to delete certain frames which effectively allows you to set up an arbitrary sequence of board position and generate an animated GIF diagram. I am the author of this tool.

|improve this answer|||||
  • 1
    You can write an email message to Apronus.com and ask them to point to this page where you ask about proving me to be the author. I will see the message and reply with a link to this very page. – DrCapablasker Apr 5 '19 at 11:42
2

Well, for a definitive answer you need to ask the authors/maintainers of the website. Especially since it has a "legal moves only" option above the board which is selected by default. Note that this very website's replayer also executes the illegal move in your post.

I can imagine that one wants to analyze/record a complete game even if an illegal move was made in it, or show an almost-legal constructed game to reach a certain position. However, the PGN standards forbid this:

8.2: Movetext section

The movetext section is composed of chess moves, move number indications, optional annotations, and a single concluding game termination marker.

Because illegal moves are not real chess moves, they are not permitted in PGN movetext. They may appear in commentary, however. One would hope that illegal moves are relatively rare in games worthy of recording.

|improve this answer|||||
  • No, the position editor is to setup positions where you don't care about past moves. At least that's what I would use it for ... – Glorfindel Apr 4 '19 at 12:56
  • The "position setup" interface can be used to illustrate an arbitrary sequence of chessboards, not necessarily legal or illegal moves. If you tick the checkbox "Animation sequence" you will see that it keeps a record of all board positions like frames in a movie. It allows you to delete certain frames which effectively allows you to set up an arbitrary sequence of board position and generate an animated GIF diagram.I am the author of this tool. – DrCapablasker Apr 5 '19 at 11:38
2

Do you have any idea why this is happening?

Because it is a chessboard editor, not an engine.

Here is what the Apronus site says:

PGN Viewer and Editor with Chess Puzzle Editor

  • online interactive chessboard with PGN viewer and editor, diagram editor and puzzle editor
  • set up any position to play against computer or analyze with a chess engine
  • make diagrams with arrows and selected squares or animations indicating moves with arrows
  • create links to your chess positions or embed chessboards on your own pages
  • design chess puzzles:

Its main function is to help you design diagrams and puzzles not validate your games.

|improve this answer|||||
  • 1
    It should be able to validate games but it has a bug as I explained in my answer chess.stackexchange.com/a/24121/3456 – DrCapablasker Apr 5 '19 at 11:33
  • 3
    At the time of writing my answer was below not above. You can never tell because these things shift position according to the votes they get. – DrCapablasker Apr 5 '19 at 11:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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