Check out Alice Chess, our featured variant for June, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments by HGMuller

EarliestEarlier Reverse Order LaterLatest
ChessVA computer program
. Program for playing numerous Chess variants against your PC.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Sun, Dec 18, 2022 11:51 AM UTC in reply to Aurelian Florea from 10:58 AM:

After some more consideration I would prefer the "null move doesn't change imitation" over "null move = King move" rule. Because then it would not matter whether you define check by a second move in the same turn, or as a move after a hypothetical null move. I am afraid the concept of a null move is only natural to engine programmers.


H. G. Muller wrote on Sun, Dec 18, 2022 03:19 PM UTC in reply to Greg Strong from 01:48 PM:

The FIDE "laws of Chess" define check in terms of being attacked, and 'attack' in terms of pseudo-legal moves of the pieces. This does not allow for the pseudo-legal moves to change over time, and tacitly assigns the same pseudo-legal moves to a piece whether it is its turn to move or not. So it involves the fiction that the checking side can move, even if it is not his turn. To move out of turn you would either have to do two moves in the same turn, or let the opponent pass his turn between the two moves. This is how the null move enters the discussion.

Legality of moves in FIDE in general is completely covered by the rule "it is not legal to expose your King to capture, except for capturing the opponent King". Only castling is special, in that it is additionally declared illegal when the King starts or moves over an attacked square.

'Exposing to capture"is completely unambiguous. And it definitely does not indicate the interpretation you sketch above, where the Joker would "forbid a lot of King moves". The ambiguity is what moving out of check or through check means. Note that Fergus avoided any ambiguity by stating that the Royal Queen in Caïssa Britannia can not pass through a square that it could not legally move to". This also seems the logical way to treat passing through check in the context of castling. (Except perhaps for 3-step castling, where the second step in itself would be illegal because it is not even pseudo-legal, and the phrase would have to replaced by "where it cannot legally teleport to if teleporting was a pseudo-legal King move.) The spirit of the rule is all about the King being shot down during the attempt, like e.p. capture. Like I said, this is not a Joker-specific problem; many other pieces whose pseudo-legal moves depend on context (lame leapers, hoppers) require more precise definition of when castling is allowed.

Being in check at the beginning of your turn (and moving out of it) is yet another matter. Which affects both castling legality, and the stalemate definition.

To apply these definitions to a Joker, it becomes essential to define when exactly the pseudo-legal moves of the Joker change. It cannot be at the start of a turn, as at that point it is not yet decided which piece is going to move, so you cannot know what the new moves are. Declaring it has no moves at that point comes "out of nowhere"; no other piece loses all its moves (for determing whether the opponent would castle out of check) after it finishes is move. It seems much less arbitrary to let it keep its moves until another piece actually starts moving. That would affect whether you consider the side to move to be in check or not. And thereby whether castling is legal, or whether a terminal position is checkmate or stalemate. But nothing else.

 


H. G. Muller wrote on Sun, Dec 18, 2022 03:25 PM UTC in reply to Greg Strong from 02:54 PM:

This is not legal in Chess, but chess programs do it anyway as a way to cut out part of the search tree.

Or to test for check: when passing the turn would get your King captured.


Game Courier. PHP script for playing Chess variants online.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Sun, Dec 18, 2022 03:38 PM UTC in reply to Fergus Duniho from Sat Dec 17 06:12 PM:

If all your pieces are from the same set, I am going to recommend using aliases instead of the newer method of rewriting $pieces.

Note that I added several 'Automatic' sets, each of which contains all available pieces of the corresponding style. E.g. alfaeriePNG, alfaeriePNG35, Utrecht/Small, XBoard, XBoard33.) That makes it easier to satisfy the 'same set' condition.

These all use the (fully capitalized or lower-cased) image names as internal piece labels. If I understand everything correctly that would not be a problem, and can be hidden from the user by defining an alias for those to be used in notation.


ChessVA computer program
. Program for playing numerous Chess variants against your PC.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Sun, Dec 18, 2022 06:37 PM UTC in reply to Greg Strong from 05:21 PM:

White moves a Queen.  Then black moves a Knight.  It is now white's turn again.  At this instant, for purposes of determining if the white King is in check, black's Joker still moves as a Queen.

That seems consistent. If black would have moved his Joker (as a Queen) instead of the Knight, and this Joker would then have delivered a Queen-like check at the end of this move, it seems logical that you could also use it to deliver a discovered check, by unblocking it with the Knight.

It can still be freely chosen whether the Joker would mimic the last-moved piece of the opponent, or the last-moved piece period. The rules could have been such that the black Knight move switches both Jokers to Knights, instead of just the black one. This is just a different kind of imitator.

All this would only be relevant if you aim a Joker at an uncastled King, which would want to castle on that move. It seems unusua that someone would expose his King this way, so the practical difference might be awfully small.


H. G. Muller wrote on Sun, Dec 18, 2022 08:21 PM UTC in reply to Greg Strong from 07:49 PM:

Use the e.p. square to indicate the last-moved piece. For true e.p. rights it would be empty, implying a Pawn must be imitated.

This is also simpler when differently colored Jokers always have the same move. Which I think is conceptually simpler anyway. So it would probably the best choice.


Submission Test. Members-Only Queens, Rooks, Knights and Bishops change identity every move. (8x8, Cells: 64) [All Comments] [Add Comment or Rating]

Since this comment is for a page that has not been published yet, you must be signed in to read it.

ChessVA computer program
. Program for playing numerous Chess variants against your PC.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Sun, Dec 18, 2022 10:23 PM UTC in reply to Greg Strong from 09:41 PM:

Well, I think he meant that during your own turn enemy Jokers have no move (so that you can never move into their check), but that whether they deliver check should be judged in the opponent's turn (after he released the piece, but before he pressed the clock, as it were).


H. G. Muller wrote on Mon, Dec 19, 2022 09:29 AM UTC in reply to Aurelian Florea from 07:19 AM:

We can summarize this as:

  • To judge whether in check at the start of your turn, the enemy Joker should be imagined to still have the move of the previous turn.
  • To judge whether you are in check during or at the end of a turn, you should imagine the Joker to move as the piece that is moving in that turn.

Now Greg's example was special, because the Joker itself moved. If the white King had been on c2, the Joker on a5, and a white Knight on a4, and on the move before Queens were traded at c3, where the Knight recaptured (Na4xc3)... Is this checkmate or stalemate?

 

files=8 ranks=8 promoZone=1 promoChoice=NQF graphicsDir=/graphics.dir/alfaeriePNG35/ squareSize=35 graphicsType=png symmetry=none knight:N:N:knight:a4 queen:Q:Q:queen:c3,,c8 fool:F:fI:fool:a5 king:K:KisO2:king:c2,,a1

The Diagram considers it stalemate, because it lets the white Joker move as Knight after 1... Qxc3 2. Nxc3.


H. G. Muller wrote on Mon, Dec 19, 2022 12:40 PM UTC in reply to Aurelian Florea from 12:21 PM:

Isn't this the same situation with having the king and joker unobstructed on the same orthogonal? This pins all rooks, queens, chancellors and so on.

No, this is different: moving a pinned piece is something the opponent punishes in his own turn, by capturing the King. The question here is whether the side that moved has delivered check with this move. Even when he does, he cannot capture the King. Because it is not his turn.

Anyway, the Diagram considers this stalemate, because the Imitator moves like a Knight. This is how I defined the I atom in XBetza:

A new atom in XBetza is I. Unlike the other atoms, it does not represent a fixed move: it stands for "all moves of the most recently moved (or imitated) piece type".

The most-recently moved piece is a Knight here. It doesn't say anywhere that the piece has to be an opponent. In your own turn it would of course be one. So this doesn't affect how the Joker moves. Just how it delivers check (which again is only important in the case of mate or castling).


H. G. Muller wrote on Mon, Dec 19, 2022 02:03 PM UTC in reply to Aurelian Florea from 01:19 PM:

Yes, that was what I also said to Greg. There exist various kinds of Imitators. But the practical difference is very slight, as delivering check makes any difference for castling out of check (while normally you would castle before the opponent has any opportunity to check), and deciding whether a mate is checkmate or stalemate (while stalemate is usually only possible when the opponent's King is bare, in which case you will have many ways to checkmate that are not affected by the precice Imitator properties). So it is really a moot point.


H. G. Muller wrote on Mon, Dec 19, 2022 03:17 PM UTC in reply to Greg Strong from 02:44 PM:

I don't think the XBetza definition is ambiguous. It says "all moves of the most-recently moved piece type". 'All' really means 'all', so including double-pushes and e.p. captures. (I do not consider promotion part of the move.) It also mentions that it imitates the piece type, rather than a particular piece. So it doesn't matter whether the piece that moved still was able to make its initial move; it is the Imitator that should satisfy the conditions for making the initial move.

This is also how I implemented it in the Diagram: the I atom in the move decription of the Imitator's move is simply replaced by the move description of the piece it imitates, as if the Imitator was of that piece type.

Problems could occur with piece types that do not have a fixed move, like the Elk in Elk Chess. Because the Diagram treats that as two piece types, that promote to each other depending on where they land. The implementation would then imitate the type the Elk promoted to, even if it was on a square shade where a 'unified Elk' would have moved differently. I see this more as a problem / ambiguity in the implementation / definition of the Elk than in that of the Imitator.


H. G. Muller wrote on Mon, Dec 19, 2022 03:52 PM UTC in reply to Bn Em from 02:58 PM:

in effect that the K can be captured en‐passant on its starting square

This is exactly how I implemented castling in Fairy-Max and the Interactive Diagram. So these would not castle away from an adjacent enemy Imitator, even if it just had landed there through a Knight move. This is an ambiguity in the definition of castling, however. The condition for legality of castling could have been formulated as "when the King could be moved to any square between and including its origin and destination without exposing it to capture". As this describes a stay at the origin as a (null-)move of the King, a Joker should use a King move to capture it even there.


Submission Test. Members-Only Queens, Rooks, Knights and Bishops change identity every move. (8x8, Cells: 64) [All Comments] [Add Comment or Rating]

Since this comment is for a page that has not been published yet, you must be signed in to read it.

ChessVA computer program
. Program for playing numerous Chess variants against your PC.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Mon, Dec 19, 2022 05:18 PM UTC in reply to Greg Strong from 04:05 PM:

That means that the Interactive Diagram isn't compliant with other rules of Apothecary.  That said, I think that is fine.  It is unreasonable to expect a simple "prototype" testing engine like the ID to enforce very nuanced rules exactly for all games.  But I do think the question is not as clear as you make it out to be.  If you add a Joker to Xinagqi, how does it imitate the King?  Is it restricted to the palace?  If it is not currently in the palace, can it move?  Does it "check" the opponent king across an open file?  Only in the palace?

Indeed, I don't worry about that. The purpose of the ID is not to provide an exact implementation of any particular variant. Just to provide a set of tools that makes it possible to get a fair approximation. And, as I said, this whole issue is a moot point. You could probably play hundreds of games before you encounter a situation where a Joker check would or would not make castling illegal or would checkmate or stalemate depending on this.

In general I don't think much of rules or rule complications that have next to zero effect on actual game play. I would always go for simplicity when it does not matter.

As for a Xiangqi Joker; this doesn't seem decidable by logic. It depends on whether you consider confinement as part of the move rules, or as an independent property of the piece type. Like the Joker would not mimic the royalty either, and can use a King move to step to an attacked square any time it wants. But of course you could make rules that would mimic any properties of the last-moved piece type.


How to Design and Post Your Own Game. A reference for those who want to post their own games here.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Tue, Dec 20, 2022 08:44 AM UTC in reply to David Empey from 06:26 AM:

Is there some problem with the Post Your Own Game page? When I enter game information and press the 'Step 2' button I get nothing but a blank page with the text '$personid is CroydThoth' (my username) at the top.

For me this appears to work normally. But it might depend on what exactly you entered as data in the first step. Fergus would probably know straight away what the problem is. However, I happen to be working on an enhanced copy of the submission pages, and I put some additional diagnostic output in those that could be helpful for determining which path exactly you take through the script, and thus where it might run aground. So if you want you could try to submit through this page, and tell me what is printed in that case.

[Edit] I did discover a flaw in the submission2.php page: the <LABEL> tag for the format SELECT is not closed. This cannot cause the effect you describe, though. But it had the nasty consequence that any mouse click on the page would scroll it back to get the SELECT in view.


ChessVA computer program
. Program for playing numerous Chess variants against your PC.[All Comments] [Add Comment or Rating]
H. G. Muller wrote on Tue, Dec 20, 2022 04:04 PM UTC in reply to Greg Strong from 02:57 PM:

The way I have always looked at this is that to know whether a square is attacked by the opponent during your turn you should pass that turn, and see whether the opponent then can move there. So the question then is what the turn-pass would do for the movement capabilities of the Joker. There are several cases that could be argued for:

  1. The Joker keeps its move from the previous turn, because no piece was moved during the turn pass, leaving the 'last-moved piece' just as it was. In Greg's diagram black would be stalemate if the Joker had moved to b2 through a Knight move (e.g. imitating a black Knight that just moved to b2 while capturing it). But checkmate if it had been capturing a Bishop that just moved there, as it would then still be imitating that Bishop, and thus check black.
  2. The turn pass is considered a move of the King (like in Chu Shogi it would be a move of the Lion). The Joker would then always check like a King during the opponent turn. In Greg's diagram black would always be be checkmated, even if it had moved there through a Knight move (e.g. imitating the Knight that was on b2 while capturing it).
  3. The Joker must imitate the null move. It would then not be able to deliver check at all, and the position would always be stalemate. (During its own turn it could still capture a King, though, through whatever move it has then.)

Submission Test. Members-Only Queens, Rooks, Knights and Bishops change identity every move. (8x8, Cells: 64) [All Comments] [Add Comment or Rating]

Since this comment is for a page that has not been published yet, you must be signed in to read it.

Symmetric Chess. Variant with two Queens flanking the King and Bishops Conversion Rule. (9x8, Cells: 72) [All Comments] [Add Comment or Rating]
H. G. Muller wrote on Wed, Dec 21, 2022 05:00 PM UTC in reply to Greg Strong from 04:24 PM:

Is there really no better solution for this? Extra fields should be avoided as much as possible, and I don't like the use of the extra + at all. E.g. WinBoard treats the castling field in Seirawan Chess as a general rights field, (indicating the virginity of all back-rank pieces, from which gating and castling rights follow), by mentioning their file.

The same could be done here: initially the Bishops would be in the rights field, as they can convert. If one converts the rights for both disappear. If one fails to convert on its first move, its conversion rights disappear. The rights that remain for the other now become an obligation. If the first Bishop is captured in the virgin state, you could leave its rights, implying that conversion of the one that is still there is still optional.

Or you could write an X in the rights field to indicate an undetermined conversion right exists. The X changes into the Bishop file ID to indicate that Bishop must convert, or disappears when no more conversion is allowed.


Submission Test. Members-Only Queens, Rooks, Knights and Bishops change identity every move. (8x8, Cells: 64) [All Comments] [Add Comment or Rating]

Since this comment is for a page that has not been published yet, you must be signed in to read it.

Since this comment is for a page that has not been published yet, you must be signed in to read it.

Since this comment is for a page that has not been published yet, you must be signed in to read it.

Since this comment is for a page that has not been published yet, you must be signed in to read it.

Interactive diagrams. Diagrams that interactively show piece moves.[All Comments] [Add Comment or Rating]
💡📝H. G. Muller wrote on Thu, Dec 22, 2022 12:43 PM UTC in reply to A. M. DeWitt from Wed Dec 21 03:23 AM:

I didn't have time to actually debug this, but the m in (cmpaf)2cB  is asking for trouble. This is like describing a plain Bishop (on 8x8) as (maf)7B rather than just B. You would get exponentially many paths to a distant destination, because it tries to use all intervening squares as intermediates to step on. So you could go from a1 to h8 in 64 different ways, which are all completely equivalent. I suppose that NewClick gets confused by this: it highlights the Lance in cyan, indicating that there are multiple moves to or over it. But then it turns out there is no way to resolve the moves by an additional click.

With just  (cpaf)2cB each leg would automatically skip all empty squares, and you could fly over up to 2 pieces, optionally capturing the enemies. And it would be able to do that only in a single way, each leg going from one occupied square to the next.

There could be a problem in combining destuctive modes with non-destructive modes in non-final legs. Although I am not sure if that is also the case with NewClick.


Submission Test. Members-Only Queens, Rooks, Knights and Bishops change identity every move. (8x8, Cells: 64) [All Comments] [Add Comment or Rating]

Since this comment is for a page that has not been published yet, you must be signed in to read it.

25 comments displayed

EarliestEarlier Reverse Order LaterLatest

Permalink to the exact comments currently displayed.