Originally posted by Merkman
Well, It's either my V3Razor or operator error. I can figure out the position by using the FEN, can I make a move by using the FEN?
Black is in Check.
Basically from:
3r1rk1/pbq1p1b1/1p2B1pp/2p1n3/N1P5/PP2P3/5PPP/R1B1QRK1
to:
3r1r1k/pbq1p1b1/1p2B1pp/2p1n3/N1P5/PP2P3/5PPP/R1B1QRK1
or
3r1rk1/pbq1pnb1/1p2B1pp/2p5/N1P5/PP2P3/5PPP/R1B1QRK1
or
3r2k1/pbq1prb1/1p2B1pp/2p1n3/N1P5/PP2P3/5PPP/R1B1QRK1
Is there a method to enter the move like this???
Not as far as I know.
The 'submit' button uses the following hidden parameters -
srcxfile
srcyrank
tgtxfile
tgtyrank
They specify the source and target locations of a move using a numeric coordinate system starting at a8 = 0,0 and h1 = 7,7. The form is posted back to the same page using another parameter that states a move is being made (actiontype=moverequest).
So to specify an opening move for example of d2-d4 you'd need to first translate the chess notation to the coordinate system (3,6 - 3,4) and then construct the following to add to the game URL and request the page.
.../core/playchess.php?gameid=XXXXXXX
&actiontype=moverequest&srcxfile=3&srcyrank=6&tgtxfile=3&tgtyrank=4
The move will be validated and rejected if it's illegal - but be careful in working out the coordinates properly or you could end up moving something either too far or not far enough.