Eschecs, a simple GUI written in Pascal

Discussion of chess software programming and technical issues.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
User avatar
Roland Chastain
Posts: 219
Joined: Sat Jun 08, 2013 8:07 am
Location: France
Full name: Roland Chastain
Contact:

Re: Eschecs, a simple GUI written in Pascal

Post by Roland Chastain » Mon Nov 11, 2019 12:30 pm

mar wrote:
Mon Nov 11, 2019 12:11 pm
Very nice, thanks.
Would it be possible to also support castling (say in orthodox mode) by moving the king to the target position? KxR is fine, sure, but...
Thank you. OK, I will see what I can do.

User avatar
Roland Chastain
Posts: 219
Joined: Sat Jun 08, 2013 8:07 am
Location: France
Full name: Roland Chastain
Contact:

Re: Eschecs, a simple GUI written in Pascal

Post by Roland Chastain » Mon Nov 11, 2019 1:07 pm

mar wrote:
Mon Nov 11, 2019 12:11 pm
Would it be possible to also support castling (say in orthodox mode) by moving the king to the target position?
Done. I was afraid but in fact it was not so complicated. :)

Code: Select all

  if (FUserMove = 'e1g1') and FGame.IsLegal('e1h1') and FGame.IsCastling('e1h1') then FUserMove := 'e1h1';
  if (FUserMove = 'e1c1') and FGame.IsLegal('e1a1') and FGame.IsCastling('e1a1') then FUserMove := 'e1a1';
  if (FUserMove = 'e8g8') and FGame.IsLegal('e8h8') and FGame.IsCastling('e8h8') then FUserMove := 'e8h8';
  if (FUserMove = 'e8c8') and FGame.IsLegal('e8a8') and FGame.IsCastling('e8a8') then FUserMove := 'e8a8';
It will be possible to castle that way, even in FRC mode, but only with the traditional start position.

The modification will be available with the next binary release. Thank you for that good suggestion.

mar
Posts: 2007
Joined: Fri Nov 26, 2010 1:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Eschecs, a simple GUI written in Pascal

Post by mar » Mon Nov 11, 2019 1:32 pm

Roland Chastain wrote:
Mon Nov 11, 2019 1:07 pm
Done. I was afraid but in fact it was not so complicated. :)

Code: Select all

  if (FUserMove = 'e1g1') and FGame.IsLegal('e1h1') and FGame.IsCastling('e1h1') then FUserMove := 'e1h1';
  if (FUserMove = 'e1c1') and FGame.IsLegal('e1a1') and FGame.IsCastling('e1a1') then FUserMove := 'e1a1';
  if (FUserMove = 'e8g8') and FGame.IsLegal('e8h8') and FGame.IsCastling('e8h8') then FUserMove := 'e8h8';
  if (FUserMove = 'e8c8') and FGame.IsLegal('e8a8') and FGame.IsCastling('e8a8') then FUserMove := 'e8a8';
It will be possible to castle that way, even in FRC mode, but only with the traditional start position.

The modification will be available with the next binary release. Thank you for that good suggestion.
:D
awesome, thanks.
Martin Sedlak

User avatar
Roland Chastain
Posts: 219
Joined: Sat Jun 08, 2013 8:07 am
Location: France
Full name: Roland Chastain
Contact:

Eschecs 5.0.0 beta

Post by Roland Chastain » Tue Nov 19, 2019 7:51 am

Hello!

There is another release candidate for Eschecs 5.0.0.

Testers are welcome. :wink:

Thank you.

Roland

mar
Posts: 2007
Joined: Fri Nov 26, 2010 1:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Eschecs 5.0.0 beta

Post by mar » Tue Nov 26, 2019 12:55 pm

Very nice, the new castling mode feels more natural. May I have some more (small) feature requests?
1) allow piece sizes up to 100px?
2) would it be possible to move the options (except for language) from options.exe directly to the GUI so that no restart is required?
Martin Sedlak

mar
Posts: 2007
Joined: Fri Nov 26, 2010 1:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Eschecs 5.0.0 beta

Post by mar » Tue Nov 26, 2019 1:37 pm

Oh and a bug report: when I drag the piece outside the window and then drop it to board, the GUI crashes.
more info: pick a piece, drag it outside the app window and release the button. then move the mouse cursor back to the app and click
Martin Sedlak

User avatar
Roland Chastain
Posts: 219
Joined: Sat Jun 08, 2013 8:07 am
Location: France
Full name: Roland Chastain
Contact:

Re: Eschecs 5.0.0 beta

Post by Roland Chastain » Wed Nov 27, 2019 6:42 pm

mar wrote:
Tue Nov 26, 2019 12:55 pm
Very nice, the new castling mode feels more natural. May I have some more (small) feature requests?
1) allow piece sizes up to 100px?
2) would it be possible to move the options (except for language) from options.exe directly to the GUI so that no restart is required?
Thank you for your feedback and for your encouragements.

I uploaded 100 pixels pieces to the GitHub repository.

https://github.com/rchastain/eschecs

Please copy the images folder and paste it in Eschecs directory. It should work. :wink:

To move the options directly to the GUI is a good idea but not easy to do with the existing code. I promise to do it when I start a new version of the program.

Thank you for the bug report. As soon as I fix it I will release new binaries.

Regards.

Roland

User avatar
Roland Chastain
Posts: 219
Joined: Sat Jun 08, 2013 8:07 am
Location: France
Full name: Roland Chastain
Contact:

Re: Eschecs, a simple GUI written in Pascal

Post by Roland Chastain » Wed Nov 27, 2019 6:47 pm

@mar

If you have time (and desire), you could make a translation of the interface in your native language. :wink:

Please see language.pas.

mar
Posts: 2007
Joined: Fri Nov 26, 2010 1:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Eschecs, a simple GUI written in Pascal

Post by mar » Wed Nov 27, 2019 7:58 pm

I've sent you a pull request
Martin Sedlak

User avatar
Roland Chastain
Posts: 219
Joined: Sat Jun 08, 2013 8:07 am
Location: France
Full name: Roland Chastain
Contact:

Re: Eschecs, a simple GUI written in Pascal

Post by Roland Chastain » Thu Nov 28, 2019 12:27 am

Thank you very much Martin!

Post Reply