
 Kropki -- README  for GNU/Linux and Mac OS X
 http://www.nongnu.org/kropki/

 Mac OS X version is present thanks to a patch submitted by
 Kuba Tyszko.

----------------------------------------------------------------------
 How to compile
----------------------------------------------------------------------
Type

   $ tar -jxf kropkiXXXX.tar.bz2
   $ cd src
   $ make

X headers are needed to compile.
In Debian Sarge or Etch you may type

   # apt-get install libx11-dev

to install them (if they are not installed already).

----------------------------------------------------------------------
 Running
----------------------------------------------------------------------
Go to src directory and run

   $ ./kropki

File kropkipl or kropkie is needed to run kropki.

Kropki also checks for kropki.cfg (config file)
and krpomoc (help texts), but these two files are optional.

----------------------------------------------------------------------
 Compiling and running console version
----------------------------------------------------------------------
Type

   $ tar -jxf kropkiXXXX.tar.bz2
   $ cd src
   $ make -f Makefile.server

to compile. Run 'kropki' in src directory with the following arguments:
   $ ./kropki [cC][23456mMcC][y]
where:
  - first char is 'c' or 'C' and specifies protocol version (2 or 3),
  - second char specifies the strength and type of AI
    (2,3,4,5,6 -- depth of analysis in alpha-beta search;
     m,M,c,C   -- Monte Carlo with 100, 500, 2500, 12500 iterations),
  - third char is optional, and if present, sgf file AImatch.sgf
    will be saved after each move generated by AI, and also at the end.
Examples:
  ./kropki c2   -- use protocol 2 and depth=2 (as on zagram),
                   no sgfs saved;
  ./kropki C4y  -- use protocol 3, depth=4 and save sgfs.

----------------------------------------------------------------------
 Short description of protocol 3
----------------------------------------------------------------------

First line sent to AI should have the form:
  protocol_version   board_x   board_y
and next lines should have the form:
  0  x  y  colour
  1
  -1
where '0 x y colour' plays a move, '1' generates and playes a move,
'-1' forces AI to quit. Example:

3 20 20
0 4 5 0
1
0 6 7 0
-1

Output by AI is the same as for protocol 2.

----------------------------------------------------------------------
 Copyright
----------------------------------------------------------------------
Copyright (C) 1999,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011 Bartek Dyda
  <kropki@yahoo.co.uk>.
SGF support     : from GnuGO, Copyright 1999, 2000, 2001, 2002, 2003 and 2004
                  by the Free Software Foundation. 
GUI enhancements: Copyright (C) 2009 Alexander Mishchenko.
Some ideas by Rafal Pikula (1999,2001,2002,2003,2004,2005,2006,2007)

Kropki is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2,
as published by the Free Software Foundation.

Kropki is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License, version 2, for more details.

You should have received a copy of the GNU General Public License
along with Kropki; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
