Little ChessPartner 1.12 - December 2006 ---------------------------------------------- Before using this software be sure to read the license agreement in the LICENSE.TXT file. LCHESS has been the predecessor of ChessPartner, as a design study a Java version has been derived from it, this version is named: "Little ChessPartner". Is has not been fully ported, just a small part of it ! A program written in Java is much slower then a program written in C or assembler, thus the playing strength will be much less as well. Note: This program is still under development, so please come back often, also feedback is appreciated. The applet has been made freeware, you may download it and use it on your own website. To use it download the zip file and place it in a directory on your web server. Then on your page add something like this: New in version 1.04 - Several parameters have been added to control some of the colors. Optional starting position, value is a string in FEN format. Optional background color. Optional text color. Optional color of the white fields. Optional color of the black fields. The color format is in hexadecimal #RRGGBB New in version 1.05 - Some parameters are added to control the board size. Be aware if you use non standard board sizes the pieces are resized to fit the board, this may not always give a good result Width of the chessboard, default is 320 height of the chessboard, default is 320 New in version 1.06 - Added parameters to control the text displayed on the buttons. Intended for localizing the texts. Text shown on button 1, default is "Settings" Text shown on button 2, default is "Move Now" Text shown on button 3, default is "New" Text shown on button 4, default is "About" This controls the formating of the first line wich displays the depth etc. The format string can have the parameters as shown in the sample e.g. {0} - is the depth. New in version 1.08 - Added some extra methods. New in version 1.09 - Added small 1000 moves opening book. Version 1.10 - Fixed problem with book and FEN parameter New in version 1.11 - Added GetMessageLineText function New in version 1.12 - The newgame button now changes players color. // sets the level // type=type of level, 0=Fixed time, 1=fixed depth // time is maximum thinking time in milliseconds // dept is maximum search depth in ply's boolean SetLevel(int type, int time, int depth); // rotates the board // flip - false = white at bottom void FlipBoard(boolean flip); // performs a move // from is from field, // to is to field. // 0=a1, 1=b1, 2=c1, 7=h1 // 16=a2, 17=b2 // 32=a3, 119=h8 boolean DoMove(int from,int to); // Let computer start thinking. boolean StartCompute(); // return true when the engine is busy thinking. boolean IsBrainBusy(); // starts a new game void NewGame(); // Forces engine to move immediately void MoveNow(); // Get MessageLineText, retreives text from the two message lines // can be used to retreive score and mainline // line parameter = 1 for first line or 2 for second line. String GetMessageLineText(int line); // default level parameter // See SetLevel method // Parameter to hide some of the buttons // Bit flags // 1=settings // 2=move now // 4=new game // Rotates board // See FlipBoard method Default is 0 - white pieces below 1 - black pieces below New in version 1.07 - Added parameters to control generate script events. Name a Script event that gets called when a move is made on the board or a new game is started. Sample script: For security reasons, a Java applet and JavaScript can only communicate together if they are allowed to. This is done easily by adding the MAYSCRIPT attribute to the APPLET tag. New property to set a position from JavaScript. SetPosition(String fen) Example with parameters: If it does not work, don't complain, you get what you pay for :) Note: Some browsers require the gif images to be placed outsite the zip file. In that case be sure to place them in the images subdirectory. The ZIP contents: 0.gif 1.gif 10.gif 11.gif 2.gif 3.gif 4.gif 5.gif 6.gif 7.gif 8.gif 9.gif readme.txt jchess.html Board.class CEvar.class CEvarNode.class CEvarNodeHeader.class ChessGame.class ChsBoard.class CSettingsDialog.class CSList.class DialogLayout.class IChessGameCallback.class IDD_SETTINGS.class IMoveHandler.class jchess.class jchessFrame.class MoveGen.class MovesList.class PieceSquareTables.class Setup.class license.txt This applet can be used WITHOUT ANY WARRANTIES on your own risk. For the latest updates check our website: http://www.lokasoft.nl Copyright (C) 2000-2006, Lokasoft http://www.lokasoft.nl rinfo@lokasoft.nl