board2diag 


board2diag is a JavaScript tool to easily add board diagrams to a webpage. The source code was originally made by Hans Bodlaender [hans@chessvariants.com] and expanded later by Joćo Pedro Neto [jpn@di.fc.ul.pt].
First, one has to include the call to the board2diag.js file, in the following form:

<SCRIPT LANGUAGE="JavaScript" src="board2diag.js"></SCRIPT>

Then, one can use a new JavaScript part, and make a call to board2diag. This version assumes all files are in the same directory (this is easily changed). Just click on to download the actual version. 

The function has one argument, which is a string of the following form:



Command @ is used to present specific game pieces and syntax (note: the use of symbol 'z' is not compatible with these pictures)

Version 1.2. Apr 2003