Tom Kerrigan's TSCP deriivative : Tang project

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
gleperlier
Posts: 1033
Joined: Sat Feb 04, 2012 10:03 pm

Tom Kerrigan's TSCP deriivative : Tang project

Post by gleperlier »

Hi everyone,

I sent Tom Kerrigan an email asking permission to "work" a little bit on a version of his TSCP, but got no answer. Does anyone knows if he still answers ?

Just want to "work" on eval, don't know anything in programming and will need cooperation for coding :oops:

At the end, the little engine would be not only Open Source but cooperative patchwork :)

Project is called : Tang

http://www.routard.com/photos/reunion/36694-un_tang.htm

Cheers,

Gab
User avatar
pocopito
Posts: 238
Joined: Tue Jul 12, 2011 1:31 pm

Re: Tom Kerrigan's TSCP deriivative : Tang project

Post by pocopito »

Hi Gab

I contacted Tom some time ago (maybe 4-6 months) and he kindly answered my email.

Regards

E Diaz
Two first meanings of the dutch word "leren":
1. leren [vc] (learn, larn, acquire) acquire or gain knowledge or skills.
2. leren [v] (teach, learn, instruct) impart skills or knowledge to.
User avatar
gleperlier
Posts: 1033
Joined: Sat Feb 04, 2012 10:03 pm

Re: Tom Kerrigan's TSCP deriivative : Tang project

Post by gleperlier »

pocopito wrote:Hi Gab

I contacted Tom some time ago (maybe 4-6 months) and he kindly answered my email.

Regards

E Diaz
Thanks for information !

Gab
jdart
Posts: 4367
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Re: Tom Kerrigan's TSCP deriivative : Tang project

Post by jdart »

I reported recently that Winboard protocol support is broken in TSCP, when running matches, and I haven't had an answer (so far).

FYI the gist of the problem is this:

TSCP (1.81) can send an extra move after game end, which causes Winboard to pop up an error dialog and abort the next game. This occurs if the other side has resigned or if Winboard has adjudicated the game (in case of being checkmated or stalemated, TSCP has no moves so it won't send one).

The root cause of this appears to be that TSCP doesn't monitor input while searching, or before sending a move, but only afterwards.

Arasan now starts an input polling thread and this runs asynchronously with the search. When the search is running, commands such as "quit" or "result" get pushed onto a stack and the terminate flag is set. When the search completes, it first looks into the stack to see if a game ending command is present, and if so it does not send the move. Then it executes the pending commands in the stack before reading any new ones.

This is not actually much code and if implemented would have the side benefit of enabling TSCP to easily support ponder, which it doesn't, currently.
User avatar
gleperlier
Posts: 1033
Joined: Sat Feb 04, 2012 10:03 pm

Re: Tom Kerrigan's TSCP deriivative : Tang project

Post by gleperlier »

Thanks for information !
User avatar
hgm
Posts: 27829
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Tom Kerrigan's TSCP deriivative : Tang project

Post by hgm »

The easiest way to solve this problem is to support ping. Then XBoard can see whether engine output belongs to the current game or the previous one.

It doesn't help for pondering, but PeekNamedPipe (for Windows) has always served me well for that, in single-threaded engines. It makes for nice unity in the engine: when thinking, you poll for the cock, when pondering you poll for input.
User avatar
pedrox
Posts: 1056
Joined: Fri Mar 10, 2006 6:07 am
Location: Basque Country (Spain)

Re: Tom Kerrigan's TSCP deriivative : Tang project

Post by pedrox »

Tom maintains a web page on TSCP. Still he prefer to control the distributions of TSCP. TSCP is open source but not GPL.

If you ask his permission to make an engine with the code of TSCP, surely you will receive the permit.

But I think that Tom prefers that the new engine is not open source.

Another different thing is if you find errors in code.
User avatar
gleperlier
Posts: 1033
Joined: Sat Feb 04, 2012 10:03 pm

Re: Tom Kerrigan's TSCP deriivative : Tang project

Post by gleperlier »

Hi,

Tom did answer me few minutes ago !

Best wishes,

Gab
syzygy
Posts: 5569
Joined: Tue Feb 28, 2012 11:56 pm

Re: Tom Kerrigan's TSCP deriivative : Tang project

Post by syzygy »

pedrox wrote:Tom maintains a web page on TSCP. Still he prefer to control the distributions of TSCP. TSCP is open source but not GPL.
Open source requires more than just access to source code, so TSCP is not open source.

A simple engine that is open source (even GPL) is MSCP.
User avatar
hgm
Posts: 27829
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Tom Kerrigan's TSCP deriivative : Tang project

Post by hgm »

Well, actually 'open source' does mean access to the source code. It seems some people are now trying to hijack that terminology for there own purposes. Best ignore them...