Chess for Android: Quick Castling/En-passant

Discussion of anything and everything relating to chess playing software and machines.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
User avatar
abik
Posts: 740
Joined: Fri Dec 01, 2006 9:46 pm
Location: Mountain View, CA, USA
Full name: Aart Bik
Contact:

Chess for Android: Quick Castling/En-passant

Post by abik » Sun Aug 11, 2019 12:23 am

Chess for Android, when connected to an electronic board (Certabo, Millennium, DGT), was a bit restrictive with castling and en-passant moves. It expected the king to move fist, then the rook; likewise, the capturing pawn first, then the removed pawn. I actually implemented it this way on purpose, since these are the official FIDE rules. However, not all users appreciated this decision. Especially in rapid games, moving the pieces "simultaneously" is not uncommon. Therefore, the next release will be much more forgiving with such moves.

User avatar
PeterO
Posts: 120
Joined: Sun Jul 31, 2016 4:35 pm

Re: Chess for Android: Quick Castling/En-passant

Post by PeterO » Sun Aug 11, 2019 7:36 am

Hi Aart,

nice to hear that the improvement of Chess for Android is going on! :D
When can we see your next release? Are there other points that will come for sure?

Peter

Ras
Posts: 1159
Joined: Tue Aug 30, 2016 6:19 pm
Contact:

Re: Chess for Android: Quick Castling/En-passant

Post by Ras » Sun Aug 11, 2019 1:23 pm

abik wrote:
Sun Aug 11, 2019 12:23 am
I actually implemented it this way on purpose, since these are the official FIDE rules.
For castling yes. But for capturing a piece, you can take first the piece and then place your own piece. It's just that the touch-move rule applies, i.e. if you touch an opponent's piece without announcing "j'adoube" or similar, you then have to capture it if a legal capture move exists - but that happens anyway with EP.

Or is my knowledge of the official chess rules outdated?
Rasmus Althoff
https://www.ct800.net

User avatar
abik
Posts: 740
Joined: Fri Dec 01, 2006 9:46 pm
Location: Mountain View, CA, USA
Full name: Aart Bik
Contact:

Re: Chess for Android: Quick Castling/En-passant

Post by abik » Sun Aug 11, 2019 3:39 pm

Ras wrote:
Sun Aug 11, 2019 1:23 pm
Or is my knowledge of the official chess rules outdated?
No, you are correct. I took the FIDE rule of moving the king first for castling but that decision translated to a restrictive implementation for en-passant as well. For all other captures, the order did not matter even before. The capture would be correctly registered also if the captured piece was taken away first. But in any case, in the next update, this has all become moot.

User avatar
Nordlandia
Posts: 2444
Joined: Fri Sep 25, 2015 7:38 pm
Location: Sortland, Norway

Re: Chess for Android: Quick Castling/En-passant

Post by Nordlandia » Sun Aug 11, 2019 4:07 pm

The rules should be if you touch the rook first then you should not be able to castle regardless. Otherwise one may exploit the castling/touch move privileges. If you let users castle with the rook first then they will continue develop a bad habbit that might be punished in a OTB tournament game.

Castling should only be possible by touching the king first.

User avatar
abik
Posts: 740
Joined: Fri Dec 01, 2006 9:46 pm
Location: Mountain View, CA, USA
Full name: Aart Bik
Contact:

Re: Chess for Android: Quick Castling/En-passant

Post by abik » Sun Aug 11, 2019 5:19 pm

Nordlandia wrote:
Sun Aug 11, 2019 4:07 pm
Castling should only be possible by touching the king first.
Well, if one blatantly moves the rook first, the move registers as a rook move, of course, and any subsequent king move is rejected (the electronic boards I support give no indication of touching a piece). The new implementation is just more forgiving when the rook and king move (almost) simultaneously.

User avatar
abik
Posts: 740
Joined: Fri Dec 01, 2006 9:46 pm
Location: Mountain View, CA, USA
Full name: Aart Bik
Contact:

Re: Chess for Android: Quick Castling/En-passant

Post by abik » Sun Aug 11, 2019 9:13 pm

PeterO wrote:
Sun Aug 11, 2019 7:36 am
nice to hear that the improvement of Chess for Android is going on! :D
When can we see your next release? Are there other points that will come for sure?
Hard to say at this point. I have a very long todo list, but it is usually just a matter of what peaks my interest when I have some spare time....
In any case, stay tuned for more updates!

User avatar
abik
Posts: 740
Joined: Fri Dec 01, 2006 9:46 pm
Location: Mountain View, CA, USA
Full name: Aart Bik
Contact:

Re: Chess for Android: Quick Castling/En-passant

Post by abik » Fri Aug 16, 2019 6:11 pm

This change is now available on Google Play (this time around, rolling out took a very long time, not sure why).

Post Reply