################################ C H E S S   L A M E R   v. 2.0 ################################

1. How to install?
  First of all please don't change the two scripts' filenames because they are used internally!
The filenames should be Chess.mrc and Chess2.mrc. And now for the installation... In any mIRC
window type: /load -rs Dir_the_Chess.mrc_is_in\Chess.mrc substituting the Dir_the_Chess... with
the directory where you placed the Chess.mrc file. If a [Yes] [No] dialog pops-up hit *yes* and
if everything's fine you will get this: * ^^WrATh^^ Presents: CHESS LAMER v2.0.
  NOTE: If after /load-ing you are asked for the second script file that's because you put them
in different dirs and the script is asking you to find the second part.

2. How to play?
  Type /chess in any mIRC window or select through the popups Chess Lamer\Play Chess. A window
should pop up. Now you have the choice to either Create A Game or Join one (select from the
popups of the Chess Lamer window).

>>> Creating a game:
  When you create a game *you choose* which colour you want to play with (White or Black) and
the pieces are shown! Now you have to find a partner (it should be no problem because of IRC ;))
who also has the Chess Lamer and persuade him to join the game.

>>> Loading a game:
  If you have previously saved some of your games (they are stored in the "clsaves" dir) you can
load one of them, and when someone joins to play with you he will automatically receive the game
and you can resume playing from the point the game is saved.

>>> Joining a game:
  There are two ways:
  1) In any query window (private chat) select from the popups Chess Lamer\Play Chess while
holding the <Ctrl> key pressed (hold the key, click the popup, let go of the key) and if you are
connected to an IRC server and the guy (you are talking with in that query window) *has created
a game* you will be able to join and play.
  2) You have to first find out the person's (the creator of the game) hostname or IP. You can
get this information by doing a /whois on that guy and looking for something like:
    koj_twa is kljklkj@===>>>127.0.0.1<<<=== * hgjklk
    koj_twa using my.server.name ^^WrATh^^'s IRC Server
    koj_twa has been idle ... blah blah blah
After that you can select Join Game through the Chess Lamer window's popups and enter the
hostname or IP (in our case 127.0.0.1). Then wait a moment and the pieces will be shown to you
which means that you are connected and can begin playing!

>>> Moving the pieces:
  Click on a piece and the square should be highlighted. Then click on the
square where you want to move the piece to and the move will be made. If you want to unselect a
selected piece either click outside the chess board (but inside the Chess Lamer window) or click
that piece again.
  (There's another way if you don't want to use the mouse: in the Chess Lamer window type
   <type_of_piece> <from> <to> where type_of_piece is one of 'p', 'r', 'n', 'b', 'k' and <from> &
   <to> are squares.
   e.g. p e2 e4 -> moves the pawn from e2 to e4
        n c5 d3 -> moves the knight
        k h1 h2 -> moves the king
        0-0     -> kingside castle
        0-0-0   -> queenside castle
  )

>>> Talking to the opponent:
  Just type text and press <Enter> like you normally do when chatting. If you want to say
something that begins with '/' or that will otherwise be interpreted as a move (like '0-0' or
'q d1 d4') type what you want to say and press Ctrl+Enter.

3. Troubleshooting.
> Problems installing.
  Probably you have pressed <Cancel> or did not find the second part of Chess Lamer when the
script advised you to find the second part. When you do so the Chess Lamer unloads itself
automatically so you have to /load it again (see 1. How to install...).
> Problems joining a game.
  Before you join a game first of all it has to be *created by someone*! If it's created and you
still can't join either the creator has some sort of firewall that is blocking the connection
(to port 32173) or there's a bug I haven't figured out myself (see 5. Bugs, Questions, ...).
> Problems with your colour.
  *Only* the creator of the game can select the colours. When you join in you are given the
opposite of creator's colour.
> I can't offer a draw sometimes.
  You can only offer a draw when it's your turn to move!
> Chess Lamer does not recognize checkmate and stalemate situations.
  Yeah I know :)) (It does not recognize 'insufficient material for mate' situations either).

4. How to Un-Install?
  Select from the popups Chess Lamer\Unload! (You suck... ;P just kidding)

5. Bugs, Questions, Comments, Suggestions, etc.
  E-mail to: metal_for_muthas@hotmail.com (for every God damn thing ;))

================================================================================================
LEGAL DISCLAIMER:
  Chess Lamer is provided on an as is basis without warranty of any kind. In
  no event shall Wrath be liable for any damages
  whatsoever caused by the script's any related files, even if Wrath has been
  advised of the possibility of such damages. Chess Lamer may not be distributed as a part of
  any commercial package. All rights of Chess Lamer are owned by the author. Any
  violations to this script's copyrights will be prosecuted by the law.
================================================================================================
v1.0 - First public release

v1.1
  > Added automatic 'join game' in the query popups.
  > Chess games are now logged to the file Chess_Game.log if Log Games is set on.
  > Some speed-up.

v2.0
  > Long-File-Name compatible.
  > Totally rewritten core: uses "class"-identifier $sq and hash tables.
    (Slower now because of $sq but a lot cleaner and easy to add new features)
  > Added the ability to Save & Load games.