Papan catur ini hanya papan catur sederhana tidak ada penomoran untuk posisi bidak.
PHP :
<?php $r = 0; $size = 8; $board = "<div style='padding:5;border:4px solid black;display:inline-block'><table style='padding:0;border:4px solid black' cellspacing=0>"; while(++$r <= $size) {
$board .= "<tr>";
$c = 0;
while(++$c <= $size) {
$color = "white";
if(($r+$c) % 2 == 1) {
$color = "black";
}
$board .= "<td style='width:50px;height:50px;padding:0;background:".$color.";'></td>";
}
$board .= "</tr>";
}
$board .= "</table></div>";
echo $board; ?>
EmoticonEmoticon