Chess Example game Using the applet
Using the applet
General
The applet's main purpose is to allow you to store games played at MindSports.
There you will also find the proper format for entering moves: Chess notation and Chess960 notation.
To copy a game from MindSports to your local applet, choose "View Frame Source" (in windows under the right mouse button, on a mac ctrl-click) and copy the game - the part within and including the applet tags:

<applet codebase="/classes" ... >the game</applet>

Insert it in a COPY of the game template as indicated, and open it in your browser.
You can copy the table with the moves too, of course. Note that is is outside the applet tags.
You can also use copies of the game template to practice the special params that allow you to set up positions or problems, or to modify stored games.
Here's a table with the general params you can use:

<param name="..." value="...">This is the general format.
Simply replace the dots by the name and value concerned.
The line may be inserted anywhere in between the applet tags:
<applet codebase= ... > here </applet>.
 
NameValue (* = default)Function
StartupAction*Hold/Play/GotoEnd'Hold' will open the game in the initial position.
'Play' will start the game automatically.
'GotoEnd' will open the game's position after the last move made.
GameVariant*Chess
Chess960
Chess960 JKL
Chess960 NC
The Chess960 variants employ a random setup (within '960-rules').
Chess960 follows Bobby Fischer's 'CG-castling' rules, 'JLK' (John Lewis Kipling) follows 'modified traditional castling'.
'NC' (No Castling) generates the random setup, but castling attempts simply result in an illegal move (which the applet will NOT indicate: as always, you'll have to ensure the legality of moves yourself).
StartupMove*White_1/White_#
*Black_1/Black_#
Whether white or black begins depends on the game.
'#' is a move number other than 1, convenient in case of analysis of game positions.
White_#
Black_#
white move
black move
Where '#' is the move number: White_1, Black_1, White_2, Black_2 ... and so on.
The value is the move concerned in applet format.
You can find the proper format for entering moves here.
Note: if you copy a game from the ArenA, the format is implicitly correct.
White_#_Comment
Black_#_Comment
ad lib
ad lib
Again '#' is the move number. The comment appears in the textbar prior to the execution of the move.
The comment is permanent until the next comment. It can be terminated by a subsequent 'empty comment' like this:
<param name="Black_6_Comment" value="Terminated by the next comment">
<param name="White_7_Comment" value="">
White_Setup
Black_Setup
Position of pieces on the board.
*Initial position
As values use something like: b5 P, c5 K, c4 P, g4 N, h5 B, ...
Use the capitals in King, Queen, Rook, Bishop, kNight and Pawn.
Be sure to keep a space between the coordinate and the piece.
Use a comma ' , ' or semicolon ' ; ' as separator.
SetupSeedany number (*0)Seeds the random setup generator of the Chess960 variants. A non-zero number yields the same setup each time.
FinalCommentad libThe comment appears in the textbar after the last move made.
EndMessage*White/Black to move
ad lib
Gives the applet's status during the game, i.e. 'playing...' or 'held', and the player to move after the last move made.
Can be used for a short final status like '1-0', 'draw', or 'black resigns'.
 
PlaySpeedany number (*10)Tempo of auto play in tenth of seconds.
TipTimeany number (*500)Time before the tip shows in milliseconds.


Specific
For castling in traditional Chess specify the king's move only, i.e. e1-c1 or e1-g1. The rook will follow suit.
For castling in the Chess960 variants one simply moves the King ONTO the castling rook. The move will follow the chosen 'castling mode'.
Alternatively, one can use O-O-O or O-O in every variant.
For en passant capture, specify start- and endsquare of the capturing pawn, i.e. e5-d6x.
For promotion specify piece you choose, i.e. d7-d8 Q. Use the capitals in Queen, Rook, Bishop and kNight and be sure to keep a space between the move and the piece.
MindSports, designed by SiteGround web hosting