Thank you. OK, I will see what I can do.
Eschecs, a simple GUI written in Pascal
Moderators: hgm, Rebel, chrisw
-
- Posts: 640
- Joined: Sat Jun 08, 2013 10:07 am
- Location: France
- Full name: Roland Chastain
Re: Eschecs, a simple GUI written in Pascal
Qui trop embrasse mal étreint.
-
- Posts: 640
- Joined: Sat Jun 08, 2013 10:07 am
- Location: France
- Full name: Roland Chastain
Re: Eschecs, a simple GUI written in Pascal
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';
The modification will be available with the next binary release. Thank you for that good suggestion.
Qui trop embrasse mal étreint.
-
- Posts: 2559
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
Re: Eschecs, a simple GUI written in Pascal
Roland Chastain wrote: ↑Mon Nov 11, 2019 2:07 pm Done. I was afraid but in fact it was not so complicated.
It will be possible to castle that way, even in FRC mode, but only with the traditional start position.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';
The modification will be available with the next binary release. Thank you for that good suggestion.
awesome, thanks.
Martin Sedlak
-
- Posts: 640
- Joined: Sat Jun 08, 2013 10:07 am
- Location: France
- Full name: Roland Chastain
Eschecs 5.0.0 beta
Qui trop embrasse mal étreint.
-
- Posts: 2559
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
Re: Eschecs 5.0.0 beta
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?
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
-
- Posts: 2559
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
Re: Eschecs 5.0.0 beta
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
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
-
- Posts: 640
- Joined: Sat Jun 08, 2013 10:07 am
- Location: France
- Full name: Roland Chastain
Re: Eschecs 5.0.0 beta
Thank you for your feedback and for your encouragements.mar wrote: ↑Tue Nov 26, 2019 1: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?
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.
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
Qui trop embrasse mal étreint.
-
- Posts: 640
- Joined: Sat Jun 08, 2013 10:07 am
- Location: France
- Full name: Roland Chastain
Re: Eschecs, a simple GUI written in Pascal
@mar
If you have time (and desire), you could make a translation of the interface in your native language.
Please see language.pas.
If you have time (and desire), you could make a translation of the interface in your native language.
Please see language.pas.
Qui trop embrasse mal étreint.
-
- Posts: 2559
- Joined: Fri Nov 26, 2010 2:00 pm
- Location: Czech Republic
- Full name: Martin Sedlak
-
- Posts: 640
- Joined: Sat Jun 08, 2013 10:07 am
- Location: France
- Full name: Roland Chastain
Re: Eschecs, a simple GUI written in Pascal
Thank you very much Martin!
Qui trop embrasse mal étreint.