' . $ijk . ' | ';
} else if (($ijk % 3) == 0) {
$arow=str_replace('', '' . $ijk . ' | ', $arow);
$templategame=str_replace('', $arow . '', $templategame);
$arow='';
} else {
$arow=str_replace('', '' . $ijk . ' | ', $arow);
}
}
$templategame=str_replace('', $arow . '', $templategame);
//file_put_contents('xx.html', $templategame);
$curclass='white';
if ($across != 3 && 1 == 1) {
$irws=1;
$usedtobesofartd='';
$sofartd='';
$two=2;
$wasih="", explode("";
$origih=$wasih;
$rowas=explode("", $wasih);
for ($irws=1; $irws 3 && strpos(substr(str_replace("\n","",$rowas[$irws]),0,2),'') === false) {
$wasih=str_replace($rowas[(-1 + $irws)] . '', $rowas[(-1 + $irws)] . '', $wasih);
}
}
$rowas=explode(" 3) {
$wasih=str_replace('
', $rowas[$irws])[0] . '>', '-' . '->', $rowas[$irws]), $wasih);
}
}
//file_put_contents('xxxx.html', str_replace($origih, $wasih, $templategame));
$usedtoberowas=explode("", $wasih);
$rowas=explode("", $wasih);
for ($irws=0; $irws') === false) {
$curclass='white';
} else {
$curclass='black';
}
if (((1 + $irws) % $across) == 0) {
$usedtobesofartd.=$usedtoberowas[$irws] . '';
$sofartd.=$rowas[$irws] . '';
$wasih=str_replace($usedtobesofartd, $sofartd . '
', $wasih);
$usedtobesofartd='';
$sofartd='';
$two++;
} else {
$usedtobesofartd.=$usedtoberowas[$irws] . '';
$sofartd.=$rowas[$irws] . '';
}
}
for ($irws=9; $irws<=16; $irws+=2) {
$wasih=str_replace(' data-square=' . $irws . ' ', ' class=black style="background-color: rgba(0,0,0,0.6);" data-square=' . $irws . ' ', $wasih);
$wasih=str_replace(' data-square=' . (1 + $irws) . ' ', ' class=white style="background-color: rgba(255,255,255,0.5);" data-square=' . $irws . ' ', $wasih);
}
for ($irws=1; $irws<=8; $irws+=2) {
$wasih=str_replace(' data-square=' . $irws . ' ', ' class=white style="background-color: rgba(255,255,255,0.5);" data-square=' . $irws . ' ', $wasih);
$wasih=str_replace(' data-square=' . (1 + $irws) . ' ', ' class=black style="background-color: rgba(0,0,0,0.6);" style="background-color: rgba(255,255,255,0.6);" data-square=' . $irws . ' ', $wasih);
}
for ($irws=25; $irws<=32; $irws+=2) {
$wasih=str_replace(' data-square=' . $irws . ' ', ' class=black style="background-color: rgba(0,0,0,0.6);" data-square=' . $irws . ' ', $wasih);
$wasih=str_replace(' data-square=' . (1 + $irws) . ' ', ' class=white style="background-color: rgba(255,255,255,0.5);" data-square=' . $irws . ' ', $wasih);
}
for ($irws=17; $irws<=24; $irws+=2) {
$wasih=str_replace(' data-square=' . $irws . ' ', ' class=white style="background-color: rgba(255,255,255,0.5);" data-square=' . $irws . ' ', $wasih);
$wasih=str_replace(' data-square=' . (1 + $irws) . ' ', ' class=black style="background-color: rgba(0,0,0,0.6);" data-square=' . $irws . ' ', $wasih);
}
for ($irws=41; $irws<=48; $irws+=2) {
$wasih=str_replace(' data-square=' . $irws . ' ', ' class=black style="background-color: rgba(0,0,0,0.6);" data-square=' . $irws . ' ', $wasih);
$wasih=str_replace(' data-square=' . (1 + $irws) . ' ', ' class=white style="background-color: rgba(255,255,255,0.5);" data-square=' . $irws . ' ', $wasih);
}
for ($irws=33; $irws<=40; $irws+=2) {
$wasih=str_replace(' data-square=' . $irws . ' ', ' class=white style="background-color: rgba(255,255,255,0.5);" data-square=' . $irws . ' ', $wasih);
$wasih=str_replace(' data-square=' . (1 + $irws) . ' ', ' class=black style="background-color: rgba(0,0,0,0.6);" data-square=' . $irws . ' ', $wasih);
}
for ($irws=57; $irws<=64; $irws+=2) {
$wasih=str_replace(' data-square=' . $irws . ' ', ' class=black style="background-color: rgba(0,0,0,0.6);" data-square=' . $irws . ' ', $wasih);
$wasih=str_replace(' data-square=' . (1 + $irws) . ' ', ' class=white style="background-color: rgba(255,255,255,0.5);" data-square=' . $irws . ' ', $wasih);
}
for ($irws=49; $irws<=56; $irws+=2) {
$wasih=str_replace(' data-square=' . $irws . ' ', ' class=white style="background-color: rgba(255,255,255,0.5);" data-square=' . $irws . ' ', $wasih);
$wasih=str_replace(' data-square=' . (1 + $irws) . ' ', ' class=black style="background-color: rgba(0,0,0,0.6);" data-square=' . $irws . ' ', $wasih);
}
//file_put_contents('x.html', str_replace($origih, $wasih, $templategame));
$templategame=str_replace($origih, $wasih, $templategame);
}
}
//file_put_contents('xxx.html', $templategame);
$templategame=str_replace('', '', $templategame);
$templategame=str_replace('>Game<', '>Chess Game Practice ... drag to matching correct answer to score<', $templategame);
$templategame=str_replace('>', '>' . $scorebit . '', $templategame);
$thepsource=explode('f0;">', explode("", $templategame)[0])[-1 + sizeof(explode('f0;">', explode("", $templategame)[0]))];
//$templategame=str_replace(', 2023<', ', 2023 ... thanks to https://en.wikipedia.org/wiki/Street_suffix<', $templategame);
$templategame=str_replace('>Reset example<', ' style="display:none;">Reset example<', $templategame);
if (1 == 2) {
$templategame=str_replace('', "", $templategame);
} else {
$templategame=str_replace('', "", $templategame));
$templategame=str_replace('Drop Zone', '', str_replace(') : 3;', ') : 8; // 8', str_replace(') : 9;', ') : 64; // 64', str_replace(')) : 1;', ')) : 0; // 32', str_replace('] ? true : false;', '] ? true : false; ', str_replace(") : '';", ") : '♚ ♔ ♛ ♕ ♜ ♖ ♜ ♖ ♝ ♗ ♝ ♗ ♞ ♘ ♞ ♘ ♟ ♙ ♟ ♙ ♟ ♙ ♟ ♙ ♟ ♙ ♟ ♙ ♟ ♙ ♟ ♙';", $templategame))))));
}
//echo $crandlist . "\n" . $thepsource . "\n" . $correctans . "\n";
//exit;
//echo $crandlist . "\n";
//echo "" . $randlist[$correctans] . "\n" . $wikidescriptions[$randlist[$correctans]] . "\n" . $wikidesignations[$randlist[$correctans]];
//exit;
if ($randmode == 0) { // designation up top and descriptions in drop zone
$templategame=str_replace('>' . (1 + $correctans) . '<', ' style=text-align:center; data-answer="' . $theans . '">' . $theans . '<', $templategame);
$templategame=str_replace('">' . $thepsource . '<', 'text-align:center;" data-answer="' . $theans. '">' . $thecluewording . '<', $templategame);
for ($i=1; $i<=99; $i++) {
if ((-1 + $i) != $correctans) {
$templategame=str_replace('>' . $i . '' . $i . '' . (1 + $correctans) . '<', ' style=text-align:center; data-answer="' . $wikidesignations[$randlist[$correctans]] . '">' .$wikidesignations[$randlist[$correctans]] . '<', $templategame);
$templategame=str_replace('">' . $thepsource . '<', 'text-align:center;" data-answer="' . $wikidesignations[$randlist[$correctans]] . '">' . $wikidescriptions[$randlist[$correctans]] . '<', $templategame);
for ($i=1; $i<=99; $i++) {
if ((-1 + $i) != $correctans) {
$templategame=str_replace('>' . $i . '' . mapittwo($wikidesignations[$randlist[-1 + $i]]) . '