toga2 for Debian
----------------

Contents:

1. egbb support
2. Versioning of the package
3. The "chess strength" ELO Rating
4. This package is lacking documentation
5. How to use up to 4 Threads

##################
0. Source of the package
##################

There is no Upstream anymore, but the developers maintaining the code
may be found at the talkchess Forum:

http://talkchess.com

I have downloaded the package and hat to repack it to remove the
binary, the download link is:

http://www.computerchess.info/tdbb/phpBB3/download/file.php?id=1402

##################
1. egbb support
##################

NEW: I provide a package of 3-4 men bitbase files for toga2 at:
http://oko00.hostsharing.net/debian/unofficial/

You need the libegbb and egbb34 packages. Just install them and
run toga, you should be properly set up.

Or get egbb support by hand:

You need the scorpio egbb files and library.

This is distributed by: http://wbec-ridderkerk.nl/

Go to the download section and select scorpio at this page you will find the
3, 4 & 5 pieces endgames, including the egbbso.so, maybe this link works:


http://wbec-ridderkerk.nl/html/download/scorpio/egbbs_3_4.rar

Just unpack them into a directory of your choice and you will have to run the
following UCI command on the toga2 command prompt to enable it:

"setoption name Bitbases Path value /home/username/chess/lib/"

if you type "uci" you will see all the settings that can be made.

##################
2. Versioning of the package
##################

Toga is originally a tuned version of fruit. Most of this tuning and further
development is done by Thomas Gaksch, but others have contributed as well. As
far as I (Oliver Korff) know there are a lot of versions out there and I will
state every known addition in the copyright file. I see it like this: The source
of all is the Program fruit by Fabien Letoucy, and it is now maintained by the
"computer chess community".

Additionally I tuned the version number regarding the policy.

Original upstream Number: Toga II 1.4.1SE

The version history goes like this:
Toga II 1.2.1a
Toga II 1.2
Toga II 1.2 Beta 2a
Toga II 1.1a
Toga II 1.1 for Linux/Mac  (Compilation by Peter Schäfer)
Toga II 1.0
Toga II 1.0 for Linux (compilation by Peter Schäfer)
Toga II 1.0 for Mac (compilation by Peter Schäfer)
Toga II 1.0 MV6 with MultiPV option by Jarkko Pesonen
Toga II 1.0 Beta 2
Toga II 0.94 Beta 4
Toga II 0.94 Beta 3
Toga II 0.94 Beta 2
Toga II 0.93
Toga II 0.93 with personality file by Jim Ablett

As this software is released in debian, I will have a word with
the upstream author about versioning.... ;o)


##################
3. The "chess strength" ELO Rating
##################

is only based on chess engine Tournaments. You can start your own
tournaments with the tourey-manager coming soon to debian. For results
of such tourneys and chess engine ratings see:

http://www.husvankempen.de/nunn/
http://web.telia.com/~u85924109/ssdf/
http://www.computerchess.org.uk/ccrl/4040/index.html
http://www.computerchess.org.uk/ccrl/4040/rating_list_all.html

##################
4. This package is lacking documentation
##################

I'am sorry, but toga2 is based on fruit you can apt-get install the fruit
package and maybe find some interesting information in the technical.txt

there. 

##################
5. How to use up to 4 Threads
##################

I only managed it on command-line and in winboard mode with polyglot. It is
good to prove it on the command-line first. You have to talk UCI with
the engine. See /usr/share/doc/toga2/engine-interface.txt.gz


After startup of the engine you will see:

user@host:~$ toga2
Toga II 1.4.1SE UCI based on Fruit 2.1 by Thomas Gaksch and Fabien Letouzey. Settings by Dieter Eberle
Experimental engine by Chris Formula. Code was based on Toga II 1.4 Beta5c by Thomas Gaksch
EgbbProbe 3.1 by Daniel Shawul
Cache Size = 16 Mb (2070 entries)
Egbbs loaded !

The engine is waiting for commands, so type:

uci

You will see lots of messages. The one you are interested in is:

option name Number of Threads type spin default 1 min 1 max 16

You can alter the option with:

setoption name Number of Threads value 2

Type again:

uci

To see if it worked. This prints the options again. Try it out:

go infinite

The engine will now search and you should see, that your processor is 100% busy.
(If you have a dualcore machine, like I do) For a Quadcore set the option to 4.
More threads are not compiled in. If you need more power, compile the package and
edit search.cpp to your needs.

To keep this setting with a GUI I had several problems. So i found a "workaround".
Start toga2 up in "winboard" mode with polyglot. This works also in Scid. Here is
my toga2.ini

[PolyGlot]

EngineDir = /tmp
EngineCommand = /usr/games/toga2

Book = true
BookFile = /home/oliver/chess/tourney/books/gambit.bin ; same directory as INI file, use full path otherwise
# BookFile = /usr/share/games/fruit/book_small.bin ; same directory as INI file, use full path otherwise

[Engine]

Hash = 64
Number of Threads = 2

 -- Oliver Korff <ok@xynyx.de>, Sat, 29 Jul 2006 12:45:52 +0200
