1) check settings in front of "chess.php"-file
   Prfe die Settings am Anfang der Datei chess.php

2) upload chess.php to your lotgd-directory
   lade die chess.php in das lotgd-Verzeichnis auf deinem Webserver

3) create a subdirectory for storing extra-files
   erstelle ein Unterverzeichnis fr die Schach-Dateien
   (default is ./minigames/chess/)

4) execute the "tables.sql"-file in phpmyadmin
   fhre die Datei "tables.sql" in phpmyadmin aus

5) create a link to chess.php in inn.php or wherever you want
   Erstelle einen Link zur chess.php, z.B. in der Schenke


--- optional feature ---
-- section in the hall-of-fame

requires a field "chessgameswon" in your accounts-table. sql-string in tables.sql is by default comment out.
Es wird ein Feld "chessgameswon" in der accounts-Tabelle bentigt. Der passende sql-string steht auskommentiert am Ende der tables.sql

open hof.php, insert the following codeblock and create a link like
fge in hof.php den untenstehenden Codeblock ein und einen Link wie diesen
addnav('Schachgromeister','hof.php?op=chess&subop='.$subop);

//--- begin chess-section for hof.php ---
else if ($_GET['op'] == 'chess')
{
	$sql = 'SELECT acctid,login,name,chessgameswon AS data1
	FROM accounts
	WHERE chessgameswon!=0 '.$max_su.'
	ORDER BY data1 '.$order.', dragonkills '.$order_rev.'
	LIMIT '.$limit;
	$countsql='SELECT count(*) AS c FROM accounts WHERE chessgameswon!=0';

	$title = 'Auflistung der '.($subop == 'least'?'schlechtesten':'besten').' Schachspieler:';
	$foot = 'Negative Werte bedeuten: Mehr verlorene als gewonnene Spiele';
	$headers = array('&Sigma; Gewonnen-Verloren');
	$tags = array('Spiele');
	display_table($title, $sql, false, $foot, $headers, $tags);
}
//--- end chess-section for hof.php ---

in chess.php set the CHESS_HOF-constant to 1
Setze die in der chess.php Konstante CHESS_HOF auf 1

-- end optional hall-of-fame

