What was the verdict on Protector 1.2.7?

Discussion of anything and everything relating to chess playing software and machines.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
User avatar
Graham Banks
Posts: 33145
Joined: Sun Feb 26, 2006 9:52 am
Location: Auckland, NZ

What was the verdict on Protector 1.2.7?

Post by Graham Banks » Sat Oct 03, 2009 9:46 pm

Original engine or Toga clone?
At present I'm treating it as original, unless the consensus says otherwise.

Cheers,
Graham.
My email addresses:
gbanksnz at gmail.com
gbanksnz at yahoo.co.nz

User avatar
Graham Banks
Posts: 33145
Joined: Sun Feb 26, 2006 9:52 am
Location: Auckland, NZ

Re: What was the verdict on Protector 1.2.7?

Post by Graham Banks » Sat Oct 03, 2009 9:58 pm

Leo Dijksman
it seems nothing else then another TogaII, this time "bitboard based" with "many small" changed code!?
I asked some people but they say "its nearly ALL Toga", which sounds like the readme.txt part:
"In short it's kinda Bitboard-based TogaII with many small improvements."

Patrick Buchmann
Olivier give me the advice in my forum: another Fruit derivate.

Protector author
my name is Raimund Heid and I am the author of Protector. Protector is new to you and I'd like to clarify its relation to Toga/Fruit in order to give you a solid base of information for obvious questions like the one issued by K. Inuen.

When I claimed 'Protector is kinda bitboard-based Toga' I wanted to point out that Protector is based on many ideas implemented in Toga/Fruit. However, you have to keep in mind that Protector was written from scratch (about six years ago) as a bitboard-based program of its own. As a consequence it has a data structure that differs fundamentally from Toga's data structure. And of course Protector's algorithms refer to this data structure. For this reason it doesn't make sense to copy any *code* from Protector to Toga or vice versa.

This could seem to be a problem, but I think it isn't. Experience tells that chess programming is not a matter of coding but a matter of having clever ideas (or copying them ). For this reason in most cases it should't be a big effort to carry successful ideas from one program to the other.

(But, agreed, this still doesn't answer the question why I've written Protector instead of simply enhancing the Toga code. I don't think that this is a topic for the current discussion thread and for this reason I want to give only a short answer here. In fact I saw (and see) only one benefit in the option to start with the Toga code: saving a lot of time. On the other hand I saw a lot of benefits in a new program written from scratch, the most prominent being: 1) When I started with Protector back in 2003 there was no Toga or Fruit around 2) Bitboards. I like Bitboards and I think a modern chess program should be bitboard-based in order to benefit from 64 bit architectures as much as possible. 3) Learning curve. I felt that it's only possible to write a good chess program if you fully understand what's going on. One easy way to get this experience is writing a program from scratch

Coming back to the original question from K. Inuen: I guees it would take about half a day for a decent programmer with profound knowledge of the Toga data structures to attach the tablebase code. I assume the reason why this didn't happen until now is simply the copyright from Eugene Nalimov and Andrew Kadatch, which would't allow the Toga sources to be released any further under GNU licence.
My email addresses:
gbanksnz at gmail.com
gbanksnz at yahoo.co.nz

User avatar
Graham Banks
Posts: 33145
Joined: Sun Feb 26, 2006 9:52 am
Location: Auckland, NZ

Re: What was the verdict on Protector 1.2.7?

Post by Graham Banks » Sat Oct 03, 2009 10:18 pm

For the record, Protector 1.2.7 seems to be around the same strength as Frenzee Feb08, Delfi 5.4 and Twisted Logic 20080620.
My email addresses:
gbanksnz at gmail.com
gbanksnz at yahoo.co.nz

CRoberson
Posts: 1999
Joined: Mon Mar 13, 2006 1:31 am
Location: North Carolina, USA
Contact:

Re: What was the verdict on Protector 1.2.7?

Post by CRoberson » Sat Oct 03, 2009 10:46 pm

The author claims it makes no sense to copy any Toga code given the difference in data structures.

This is false.

Due to good programming with levels of abstraction, one can change the base level data structures and the base level code while leaving the
higher level code untouched.

Thus, you could change the data structures for Toga and cut and past the search. Also, you could cut a paste most of the eval.

If you do this, then its a clone, because you have fully cloned the parts that make up the personality of the program.

The only remaining question is whether or not Toga/Fruit is written well enough to pull this off. The answer is YES.

To that end, I suggest that Sloppy is practically a clone because he cloned the eval. Sloppy's author clearly states that he cloned the
eval in a comment at the top of the eval code.

User avatar
Guenther
Posts: 3048
Joined: Wed Oct 01, 2008 4:33 am
Location: Regensburg, Germany
Full name: Guenther Simon
Contact:

Re: What was the verdict on Protector 1.2.7?

Post by Guenther » Sun Oct 04, 2009 10:08 am

Graham Banks wrote:For the record, Protector 1.2.7 seems to be around the same strength as Frenzee Feb08, Delfi 5.4 and Twisted Logic 20080620.
Here it is around the same strength as Toga-FruitII 1.41SE, which is of
course much stronger than your mentioned ballpark above.
(No surprise knowing its origin)

Guenther

User avatar
Graham Banks
Posts: 33145
Joined: Sun Feb 26, 2006 9:52 am
Location: Auckland, NZ

Re: What was the verdict on Protector 1.2.7?

Post by Graham Banks » Sun Oct 04, 2009 6:40 pm

Guenther wrote:
Graham Banks wrote:For the record, Protector 1.2.7 seems to be around the same strength as Frenzee Feb08, Delfi 5.4 and Twisted Logic 20080620.
Here it is around the same strength as Toga-FruitII 1.41SE, which is of
course much stronger than your mentioned ballpark above.
(No surprise knowing its origin)

Guenther
You could be right Guenther. I based my estimate on a small number of games.
Does Protector use ideas from Toga as opposed to copied code?

Cheers,
Graham.
My email addresses:
gbanksnz at gmail.com
gbanksnz at yahoo.co.nz

User avatar
Dr.Wael Deeb
Posts: 9635
Joined: Wed Mar 08, 2006 7:44 pm
Location: Amman,Jordan

Re: What was the verdict on Protector 1.2.7?

Post by Dr.Wael Deeb » Sun Oct 04, 2009 8:42 pm

Speaking of which,a new version of Protector is out....
Protector 1.2.8 :D

http://sourceforge.net/projects/protector/

Dr.D
_No one can hit as hard as life.But it ain’t about how hard you can hit.It’s about how hard you can get hit and keep moving forward.How much you can take and keep moving forward….

User avatar
Graham Banks
Posts: 33145
Joined: Sun Feb 26, 2006 9:52 am
Location: Auckland, NZ

Re: What was the verdict on Protector 1.2.7?

Post by Graham Banks » Sun Oct 04, 2009 8:46 pm

Dr.Wael Deeb wrote:Speaking of which,a new version of Protector is out....
Protector 1.2.8 :D

http://sourceforge.net/projects/protector/

Dr.D
Looks like linux only at this stage or am I missing the link to a windows exe?
My email addresses:
gbanksnz at gmail.com
gbanksnz at yahoo.co.nz

User avatar
Dr.Wael Deeb
Posts: 9635
Joined: Wed Mar 08, 2006 7:44 pm
Location: Amman,Jordan

Re: What was the verdict on Protector 1.2.7?

Post by Dr.Wael Deeb » Sun Oct 04, 2009 8:49 pm

Graham Banks wrote:
Dr.Wael Deeb wrote:Speaking of which,a new version of Protector is out....
Protector 1.2.8 :D

http://sourceforge.net/projects/protector/

Dr.D
Looks like linux only at this stage or am I missing the link to a windows exe?
No,the Windows compiles are there Graham....
Dr.D
_No one can hit as hard as life.But it ain’t about how hard you can hit.It’s about how hard you can get hit and keep moving forward.How much you can take and keep moving forward….

User avatar
Eelco de Groot
Posts: 4159
Joined: Sun Mar 12, 2006 1:40 am
Location: Groningen

Re: What was the verdict on Protector 1.2.7?

Post by Eelco de Groot » Sun Oct 04, 2009 9:14 pm

Graham Banks wrote:Leo Dijksman
it seems nothing else then another TogaII, this time "bitboard based" with "many small" changed code!?
I asked some people but they say "its nearly ALL Toga", which sounds like the readme.txt part:
"In short it's kinda Bitboard-based TogaII with many small improvements."
I have not seen anybody point out specific code that is based on Fruit/Toga code rather than on ideas that could have come from Toga, or claim it should be published under the GPL from Fruit so maybe "some people" should be more specific then. If this wasn't discussed yet in previous threads about Protector. There is no reason to declare Protector a clone when it is using Toga's ideas rather than specific code.

Eelco
Last edited by Eelco de Groot on Sun Oct 04, 2009 9:17 pm, edited 1 time in total.
Debugging is twice as hard as writing the code in the first
place. Therefore, if you write the code as cleverly as possible, you
are, by definition, not smart enough to debug it.
-- Brian W. Kernighan

Post Reply