************************************************
* Mediocre v0.11b by Jonatan Pettersson        *
*                                              *
* Homepage: http://mediocrechess.blogspot.com/ *
* E-mail:   zlaire@gmail.com                   *
*                                              *
* Release date: 2007-01-07                     *
************************************************

------------
Introduction
------------

Mediocre is the result of a chess programming blog (http://mediocrechess.blogspot.com/).
In the blog every aspect added to Mediocre is described in detail as it develops.

Mediocre is written in Java.

------------
Installation
------------

Being a Java chess engine Mediocre needs Java Runtime Environment in order to run.
It can be found on http://java.sun.com.

To run Mediocre in WinBoard open the winboard.ini file and find the lines:

/firstChessProgramNames={GNUChess.exe
}
/secondChessProgramNames={GNUChess.exe
}

They might include more engines but should look something like that. Then add Mediocre
like this:

/firstChessProgramNames={GNUChess.exe
"java Mediocre x" /fd="<path to Mediocre>"
}
/secondChessProgramNames={GNUChess.exe
"java Mediocre x" /fd="<path to Mediocre>"
}

The next time you start WinBoard you will be able to choose Mediocre in the opening dialog.

In other interfaces (like Arena; http://www.playwitharena.com) choose Add Engine from
the the menus and select the mediocre.bat-file in the Mediocre folder. Make sure
the classpath in the .bat-file has the right path to Mediocre.(change C:\Mediocre to
whatever directory you have Mediocre in)

Note: The above code assumes you have the path to 'java.exe' set on your system. Java.exe
is used to run Java-programs. If you do not have the path set correctly, you will have
to include the path to it. The .bat-file could look like this instead:

"C:\j2sdk1.4.2_08\bin\java" -classpath "[path Mediocre is in]" Mediocre x

Where C:\j2sdk1.4.2_08\bin\ is the path to 'java.exe'. You might have it in a different
directory. If you can not find it, run a search for 'java.exe' and use the directory you find
it in.

-------
Changes
-------

   v0.11b: Null-moves added
           Added isInCheck() to the engine class (used by null-moves)
           Move sorting is now done after the mate check to save time

    v0.1b: Aspiration windows added
           Killer moves heuristic added
           Principal Variation Search added
           A new opening book, shorter but lets the engine play itself better
