'; for ($row=0; $row<8; $row++) { echo ''; for ($col=0; $col<8; $col++) { $position = ($row*8) + $col; if (in_array($position, $xs)) echo ''; elseif (in_array($position, $os)) echo ''; elseif (in_array($position, $plays)) printf('', $row, $col); else echo ''; } echo ''; } echo '

Black: 2, White: 2

'; echo '

Start Over

' ?>