Recent

Author Topic: Porting TChessBrd from Delphi  (Read 27317 times)

vferia

  • New member
  • *
  • Posts: 7
Re: Porting TChessBrd from Delphi
« Reply #30 on: August 05, 2018, 03:31:20 am »
You may reach me at this forum. Can you help?

vferia

  • New member
  • *
  • Posts: 7
Re: Porting TChessBrd from Delphi
« Reply #31 on: August 27, 2018, 01:24:58 am »
TimeWarp work on this project. I would like to modify it with the help of TimeWarp. How to get hold of him?

Thaddy

  • Hero Member
  • *****
  • Posts: 9194
Re: Porting TChessBrd from Delphi
« Reply #32 on: August 27, 2018, 09:09:36 am »
I believe I already ported it two years ago.
also related to equus asinus.

vferia

  • New member
  • *
  • Posts: 7
Re: Porting TChessBrd from Delphi
« Reply #33 on: August 27, 2018, 07:45:27 pm »
I know it has been ported. I have been trying to modify it to do "click and place" instead of "drag and drop". My familiarity with the tchessbrd unit is not that good. Maybe you can direct me where to start.

Thanks,
VF

vferia

  • New member
  • *
  • Posts: 7
Re: Porting TChessBrd from Delphi
« Reply #34 on: September 24, 2018, 09:47:29 pm »
This project is a good place to start. I have been making modifications. Now I have come to this problem. Using FEN notation, I would like to have the engine make analysis based on a starting position indicated by the FEN notation. Can anyone direct me on how to do this?

avra

  • Hero Member
  • *****
  • Posts: 1717
    • Additional info
Re: Porting TChessBrd from Delphi
« Reply #35 on: September 25, 2018, 12:36:55 pm »
Using FEN notation, I would like to have the engine make analysis based on a starting position indicated by the FEN notation. Can anyone direct me on how to do this?
You need to make a FEN parser. If you want to do it on your own, then one of the ways is to make a grammar and create parser based on that grammar. I have found one BNF grammar here, which you can adapt and use. Here is our wiki page if you want to go that path. If you don't then your best bet is to adapt other people's parser. I have found only one for Lazarus here in Chess256 application. You can find many more FEN parsers for other programming languages on the net.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

vferia

  • New member
  • *
  • Posts: 7
Re: Porting TChessBrd from Delphi
« Reply #36 on: September 26, 2018, 03:45:54 am »
Thanks for the reply. Actually, I have written a FEN parser and have tested it hhttp://analysis.cpuchess.com/ere. What really needed to know is to how to input the FEN notation into TChessBrd so that the engine can be utilized to analyze the game.

Ladywasky

  • New Member
  • *
  • Posts: 20
Re: Porting TChessBrd from Delphi
« Reply #37 on: October 20, 2018, 12:45:34 pm »
Oh ! Nice port. I have tried to use it by the past. The inculded engine is very crappy and difficult to replace but the board is nice. I remember there was a few to change (thread access violations when moving the pieces.
I used the pieces of virtual chess II to have a better look for the board and pieces.
Anyway, thank you for the port.

vferia

  • New member
  • *
  • Posts: 7
Re: Porting TChessBrd from Delphi
« Reply #38 on: February 14, 2019, 11:59:29 pm »
I have modified the app so I have a choice of engines. I run the new version 10 of stockfish and I am happy with it. I am still working on the following problems:
1. Based on FEN position, I would like the app to clear the board and place the pieces according to the FEN. How to do this in TChessbrd.
2. The next step is continuing play based on the FEN position.

Things I added to the app 1. Can communicate with electronic chessboard.
                                      2. Can email pgn file
                                      3. Can modify size of board
                                      4. Can modify color of squares
                                      5. Can select which engines to use
                                      6. Can select size of pieces.
                                      7. Can announce move made with voice.
                                      8. Can change voice gender.

Help is needed. I hope TimeWarp is listening.
« Last Edit: February 15, 2019, 12:12:59 am by vferia »