Check out Grant Acedrex, our featured variant for April, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

Chess. The most popular of Chess variants, Chess itself. (8x8, Cells: 64) [All Comments] [Add Comment or Rating]
🕸📝Fergus Duniho wrote on Mon, Mar 27, 2023 04:49 PM UTC in reply to H. G. Muller from 05:34 AM:

Here's the solution I came up with:

<input type="button" value="Abstract" onclick="graphDir='/graphics.dir/abstract/';whitePrefix='W';blackPrefix='B';imag[1]='Pawn.gif';imag[2]='Knight.gif';imag[3]='Bishop.gif';imag[4]='Rook.gif';imag[5]='Queen.gif';imag[6]='King.gif';Display();">
<input type="button" value="Alfaerie" onclick="graphDir='/graphics.dir/alfaeriePNG/';whitePrefix='w';blackPrefix='b';imag[1]='pawn.png';imag[2]='knight.png';imag[3]='bishop.png';imag[4]='rook.png';imag[5]='queen.png';imag[6]='king.png';Display();">
<input type="button" value="Magnetic" onclick="graphDir='/graphics.dir/magnetic/';whitePrefix='W';blackPrefix='B';imag[1]='Pawn.gif';imag[2]='Knight.gif';imag[3]='Bishop.gif';imag[4]='Rook.gif';imag[5]='Queen.gif';imag[6]='King.gif';Display();">
<input type="button" value="Motif" onclick="graphDir='/graphics.dir/motif/';whitePrefix='W';blackPrefix='B';imag[1]='Pawn.gif';imag[2]='Knight.gif';imag[3]='Bishop.gif';imag[4]='Rook.gif';imag[5]='Queen.gif';imag[6]='King.gif';Display();">

I also tried using SVG pieces, but only the white ones would show up. Game Courier handles this by using the showpiece.php script, but Interactive Diagrams do not. In case you would like to do something to allow SVG images to work for both colors in an Interactive Diagram, I have left up the button for it, whose code looks like this:

<input type="button" value="AlfaerieSVG" onclick="graphDir='/graphics.dir/alfaerieSVG/';whitePrefix='w';blackPrefix='b';imag[1]='pawn.svg';imag[2]='knight.svg';imag[3]='bishop.svg';imag[4]='rook.svg';imag[5]='queen.svg';imag[6]='king.svg';Display();">