Originally titled 'Chess'. As in 'Chess'.
Copyright  2005, Steve Driscoll. steviedisco@gmail.com
All rights reserved.
Covered by GNU GPL - see GPL.txt

Not sure how/where copyright applies - to the bits I did I s'pose. 
Be nice. Don't make any money out of it...!

Instructions for building (Win32)
---------------------------------

You will need to have a recent version of the Ogre source code
(get it from http://www.ogre3d.org/) and be able to compile it.
I used a CVS snapshot taken just after the 1.0.1 release.

Additionally, you'll need the boost thread libraries and CEGUI 
- CEGUI is included in the ogre dependency downloads I believe, but
you'll have to download and compile the boost libraries yourself. They
can be found at www.boost.org

Finally, you'll need to download and compile coldet (from photoneffect.com/coldet).
I was originally using opcode, but changed to coldet to experiment. 

Extract "chess.zip" into a folder of your choice, and open the solution "Chess.sln". 

I've set up all includes and library directories within the project itself - 
you'll obviously need to re-path this to the relevant directories on your system.

To debug; once you've got it all compiling and linking, you'll need to make sure 
you've got the following dlls in your debug directory:

	boost_thread-vc71-mt-gd-1_32.dll
	CEGUIBase_d.dll
	CEGUIWindowsLook_d.dll
	coldet_d.dll
	devil.dll
	ilu.dll
	OgreGUIRenderer_d.dll
	OgreMain_d.dll
	OgrePlatform_d.dll
	Plugin_ParticleFX.dll
	RenderSystem_Direct3D7.dll
 and/or RenderSystem_Direct3D9.dll
 and/or RenderSystem_GL.dll
        xerces-c_2_5_0d.dll
        zlib1.dll
	
NB:
I've included all release binaries so you should be able to run it in windows.
Don't know much about Linux - I presume it won't work straight out the box. 


Running the program
-------------------

Start the program by running Chess.exe.

Change the config settings as appropriate.
It obviously looks a lot nicer in FSAA mode. It looks slightly better in Directx9 mode,
but the mouse cursor seems smoother in GL mode. Your choice.

I haven't put in any options to turn on or off visual settings, as I have a fairly modest 
system and it runs OK here.. and I couldn't be arsed.


Controls
--------

Menu - up/down cursor keys: enter to select.
       Select 1P v CPU, 1P v 2P or change the difficulty.

Game - click piece to select. it will become highlight. once selected, 
       possible/illegal moves will become highlighted as you move your mouse
       over the board. click again to complete the move if it is legal.

       NB: A tapping hand means that the player is thinking..

       Press escape to bring up the in-game menu.

       At any time you can press [F12] to show/hide debug information,
       and [PrintScrn]/[SysRq] to save a screenshot. Screenshots are
       saved as PNG images named "chess" followed by a timestamp in the
       same folder as the executable.


Comments/Bug reports/Improvements
---------------------------------

If you have any comments or bug reports feel free to send them
to my e-mail address steviedisco@gmail.com or PM me on the Ogre forums.
In case of bug reports be sure to include any necessary information like logfile,
computer specifications, etc. If you are able to figure out the
error yourself, you can also send a patch.

If you have made any improvements you think others could benefit
from, try sending an e-mail with the altered files, and details
on the changes, and I might add it to the project.


Download
--------

I've set up a temporary download site at: 


License
-------

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program 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 for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.


Mucho gracie
------------

AI - converted to c++ and adapted from original Java source by Francois-Dominic Laramee
     Most of the game is based on this - pretty much all source in the AI
     directory comes his work. I haven't credited it in the source as it's
     fairly obvious where it applies.
     Refer to the following series of articles to help understand it..
     http://www.gamedev.net/reference/programming/features/chess1/

Game Framework - nabbed from DWORD's Yat Another Tetris source:

Jumk @ Turbosquid for the original hand model

Animation Blending - nicked from Bugshake's source on the Ogre forums.

Everyone involved in the Ogre and CEGUI projects without which obviously
none of this would be around and particularly to Sinbad, DWORD, :wumpus:
and probabably some other from the forum who I've forgotten but have helped
out when I got stuck.

Either that or I'd be thanking someone else, like Torque or something. ;)

Watch this space for the next, more exciting release!
