Forum > Ported from Delphi/Kylix

Porting TChessBrd from Delphi

<< < (6/8) > >>

BigChimp:

--- Quote from: jarto on July 30, 2013, 09:29:18 pm ---I tried to compile the demo program in Linux, but there the biggest problem are the pipes and the CreateProcess in Load_Engine. Can you tell me what's the idea behind using those?

--- End quote ---

Probably replace CreateProcess by TProcess so you can start the houdini engine (having this code in the Windows version may not be a bad idea - keeps it nice and crossplatform). The pipes are then used to communicate with the houdini engine (to pass the moves and receive the opponent's moves from the AI etc).

Timewarp:

--- Quote from: typo on July 30, 2013, 08:56:12 pm ---Should I cite Timewarp? Should I assume the license is LGPL?

--- End quote ---

I don't care, I guess same as original.


--- Quote from: jarto on July 30, 2013, 09:29:18 pm ---I tried to compile the demo program in Linux, but there the biggest problem are the pipes and the CreateProcess in Load_Engine. Can you tell me what's the idea behind using those?

--- End quote ---

I mean I tested component chessbrd.pas. Afterwards I did not even try to make demo run in Linux.

If you like to test, take that and res-file and try demo from reply #3. It should easily compile in Linux, but not work.

Using pipes was first thing that worked for me.. Like mentioned above, maybe TProcess can be used, similar thread http://forum.lazarus.freepascal.org/index.php/topic,21631.0.html


--- Quote from: typo on July 30, 2013, 10:13:32 pm ---AFAIK Houdini runs under Wine on Linux.

--- End quote ---

There are engines for Linux also. I tested Stockfish (in Windows). This engine requires whole position (all moves) to be sent on every move, that's ofcourse very easy to change.

Timewarp:
Just posting latest changes.

Demo1 uses the original engine
Demo2 uses&needs Houdini (or Stockfish)

Some of the changes, algebraic notation / basic load&save pgn. Thread suspend gone. Many bugs fixed (hopefully not created new)

Demo1 should run in Linux also, but there are bugs in Lazarus gtk2.

I'm planning to use this to watch&analyse live games. Some smaller / national tournaments, when games can't be followed in ICC/Playchess/chessbomb.com.. only on website.

vferia:
I would like to add functionality to this application, e.g. highlighting the source and destination squares of the computer move. Also, instead of drag and drop i would like to do a click option.

venus444:
I can have your email address because there is a serious bug or upload of ambiguous moves.
Thank you
venus444@alice.it

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version