");
anawin.document.writeln(" Click on the piece you wish to move and then click on its destination square. ");
anawin.document.write("
");}
function initdia(){
if (dummy1 == 1) return;
window.status = "Init. diagrams...";
j=0;
for(i=0;i
");}
function st(id,t){
document.getElementById(id).firstChild.nodeValue=t;}
function st2(id,t){
var e=document.getElementById(id);
e.style.fontSize="8pt";
e.style.fontFamily="MS Sans Serif";
e.style.fontWeight="bold";
return st(id,t);}
function paintframe(ibrd){
if(!document.getElementById)return;
var i=0;
var l=ibrd*100;
if(!rotated[ibrd]){
i=9;
st2(l+140,"a");st2(l+141,"b");st2(l+142,"c");st2(l+143,"d");st2(l+144,"e");st2(l+145,"f");st2(l+146,"g");st2(l+147,"h");
st2(l+130,"a");st2(l+131,"b");st2(l+132,"c");st2(l+133,"d");st2(l+134,"e");st2(l+135,"f");st2(l+136,"g");st2(l+137,"h");
i=0;}
else{
st2(l+140,"h");st2(l+141,"g");st2(l+142,"f");st2(l+143,"e");st2(l+144,"d");st2(l+145,"c");st2(l+146,"b");st2(l+147,"a");
st2(l+130,"h");st2(l+131,"g");st2(l+132,"f");st2(l+133,"e");st2(l+134,"d");st2(l+135,"c");st2(l+136,"b");st2(l+137,"a");
i=9;}
for (j=0; j<8; j++){
st2(l+100+j,Math.abs(i-(8-j)));
st2(l+110+j,Math.abs(i-(8-j)));}}
var fa = "";
var fe = "";
var dc = "#D5D5D5";
function koord(idxbrd, iid) {
var k = "abcdefgh";
document.write("
");
for (i = 0; i < 8; i++) {
wfc(dc, (idxbrd * 100) + iid + i, fa + k.charAt(i) + fe); }
document.write("
"); }
var x="x";
var goback=-1;
var goahead=-2;
var idx=0;
var bidx=0;
var lastidx=new Array(0, 63, 165, 228, 298, 0);
var lastcolor="#000000";
var movebgcol="#FF0000";
var movecol="#00FFFF";
var bgcolor="#ECECEC";
var maxvar=10;
var engl=2;
var lang=new Array("¢","£","¦","¥","¤","");
var nbgames = 5;
var diagram=self;
var timer=null;
var dummy2=0;
var dummy3=0;
zg=new Array(
"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR 1 x","5236","1026","5742","0118","6245","0621","6152","1119","60626361","1220","4941","0512","5849","04060705","5135","2635PAA","4535pAA","0816","6263","0211",
"5337","0324","5245","0002","4252","1927","3628","2136","4536nAA","2736BAA","5246","1835NAA","4935nAA","0503","5042","1240","4133","2427","5938","0607","3517",
"0306","5659","2725","4636pAA","2517BAA","5911bAA","1718","3630","1811RAA","3831","1523","3013pAA","0715","1330","1507","w29 0 60 ","3122","2r3rk/1p1q2p1/p3p2p/4P1NQ/1P3P2/b1P5/P5PP/5R1K 29 57","3122","2330NAA","2231"
,
"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR 1 x","5034","1228","5244","0621","5742","1127","3427pAA","2127PAA","6245","2742NAA","4942nAA","0519","6152","0111","5143","1121","4436","1523","4551","0312",
"60626361","04060705","6263","1026","5134","1910","3444","0503","5950","0220","4234","2115","5446","1211","5337","1321","5849","1505","5659","2013","5238",
"1104","4427","1019","4942","0520","3728pAA","2128PAA","5049","2035","4235nAA","2835BAA","4909pAA","0001","0916","1331","3831bAA","0431BAA","5951","0305","2737","1937NAA",
"1620","0615","4637bAA","0521","2011","2122","3729","b36 144 136 ","2246","1r6/p2Q2pk/6rp/2p2P1q/2PpP3/3P4/P2R3P/5R1K 35 133","3145","6145qAA","0157","5159","5759RAA","4561","5961RAA","1r6/p2Q2pk/7p/2p2P1q/2PpP3/3P2r1/P2R3P/5R1K 36 134","5153","0105","1119",
"4643PAA","1922","3122QAA","2922qAA","1522PAA","5305rAA","4342","6162","2231","0529","1430","2926pAA","4250","2627","5034PAA","3628","3450","6260"
,
"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR 1 x","5236","1228","5135","2835PAA","5935pAA","0118","3544","1422","5851","0514","5742","0612","60585659","04060705","5337","1127","3627pAA","1833","6134","0229",
"3441","1227PAA","4227nAA","3327NAA","4445","0321","5042","2733","w15 200 197 ","4134","r4rk1/ppp2pbp/5qp1/5b2/1n3P2/1BP2Q2/PP1B2PP/2KR2NR 15 194","5160","0503","r4rk1/ppp2pbp/5qp1/5b2/1nB2P2/2P2Q2/PP1B2PP/2KR2NR 15 195","2116","w16 225 204 ","5438","r4rk1/ppp2pbp/q5p1/5b2/1nB2P2/2P2Q2/PP1B2PP/2KR2NR 16 201","4233nAA","1634BAA","5142",
"1442BAA","w18 214 211 ","4542bAA","r4rk1/ppp2p1p/6p1/5b2/1Pq2P2/2b2Q2/PP4PP/2KR2NR 18 208","4942bAA","3448PAA","r4rk1/ppp2p1p/6p1/5b2/1Pq2P2/2Q5/PP4PP/2KR2NR 18 209","3437PAA","w19 223 218 ","4251","r4rk1/ppp2p1p/6p1/5b2/1P3q2/2Q5/PP4PP/2KR2NR 19 215","5951","3736","5859","0504","r4rk1/ppp2p1p/6p1/5b2/1P3q2/8/PP1Q2PP/2KR2NR 19 216","3736","r4rk1/ppp2pbp/q5p1/5b2/1nB2PP1/2P2Q2/PP1B3P/2KR2NR 16 202","1648PAA","5144","1442PAA"
,
"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR 1 x","5236","1228","6245","0118","6125","1835","4535nAA","2835NAA","2534","0621","w6 244 242 ","3628","r1bqkb1r/pppp1ppp/5n2/8/2BpP3/8/PPPP1PPP/RNBQK2R 6 239","60626361","r1bqkb1r/pppp1ppp/5n2/4P3/2Bp4/8/PPPP1PPP/RNBQK2R 6 240","1127","3441","0238","5345","2136",
"60626361","3543","4538bAA","0526","6263","3646","5546nAA","0330","6129","1531","w14 267 262 ","3831pAA","r3k2r/ppp2pp1/8/2bpPRqp/6P1/1B1p2P1/PPPP2P1/RNBQ3K 14 259","2930qAA","3138PAA","3031","0731RAA","r3k2r/ppp2pp1/8/2bpPRqP/8/1B1p2P1/PPPP2P1/RNBQ3K 14 260","3029RAA","4638","b16 286 272 ",
"0731PAA","r3k2r/ppp2pp1/8/2bpPq1P/6P1/1B1p4/PPPP2P1/RNBQ3K 15 269","2953","5446","5346PAA","4132","0405","5961","4639","6354","3938PAA","5463","0731PAA","6147","3147QAA","r3k3/ppp2pp1/8/2bpPq1r/6P1/1B1p4/PPPP2P1/RNBQ3K 16 270","3831rAA","2936","5945","3639","4547",
"3960","6355","2662","5563","6253","6355","6062"
,
"3r2k1/1p3pp1/pNp2nrp/2N2b2/3Pp2q/4P2P/PPQ2PPK/5RR1 1 x","2246","w2 316 303 ","5346rAA","3r2k1/1p3pp1/pNp2n1p/2N2b2/3Pp2q/4P1rP/PPQ2PPK/5RR1 2 300","6263","4654PAA","5554rAA","3930","5455","2138","4738nAA","3039","5554","3938PAA","5455","0319","3r2k1/1p3pp1/pNp2n1p/2N2b2/3Pp2q/4P1PP/PPQ3PK/5RR1 2 301","2138","5563","3946PAA",
"4738nAA","4639"
);
br=new Array(
new Array(
x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
),
new Array(
x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
),
new Array(
x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
),
new Array(
x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
),
new Array(
x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
)
);
//-->
Combinaciones: Aprovechando la mala posición de rey
El rey expuesto del rival debe ser siempre una señal que nos impulse a ahondar en el cálculo de la posición, porque son muy posibles las combinaciones para aprovecharlo. Veamos algunos ejemplos: