echo '<meta http-equiv="Refresh" content="10;url='.$url.'">'; ?> </head> <body> <div align="center"> <h3>Aktuelles Trainingsspiel<br>..:: MATT IN Zwei Zügen ::..</h3> <b>Dies war die richtige Eröffnung</b> <div id=EL_1> <br><br>Der Schachtrainer macht nun den Zug <b><?=$m['zug']?></b> </div> <br><br> <?PHP displayBoard(EPD2Board($EPD2)); ?> <br><br> <a href="<?=$url?>"><b>Weiter zum nächsten Zug >></b></a> </body> </html> <?PHP exit; } // move valid } // moves == 0
$array[$i][$j] = mt_rand(0, 1); } } } //Display board function displayBoard($array) { echo "<br>"; for ($i = 0; $i < count($array); $i++) { for ($j = 0; $j < count($array); $j++) { echo '<font color="red">' . $array[$i][$j] . '</font>'; } echo "<br>"; } } function goToGoal(&$array, $a, $b) { while (TRUE) { break; } } //EXECUTE EXISTING FUNCTIONS HERE generateArray($arrayBoard, $boardSize); displayBoard($arrayBoard); goToGoal($arrayBoard, $pointA, $pointB); //var_dump($arrayBoard); //ob_end_clean(); // // Output execution time for script $time = microtime(TRUE) - $start; echo "<br />" . "<br />"; printf('Script are executed %.8F sec.', $time);
$EPD = $_GET['EPD']; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> <!-- body { font-family: verdana, arial, helvetica, sans-serif; font-size: small; color: #000; background-color: #fff; } --> </style> <title>WebChess</title> <script language="JavaScript" type="text/javascript" src="javascript/chessutils.js"></script> <script language="JavaScript" type="text/javascript" src="javascript/EPDutils.js"></script> </head> <body> <div align="center"> <?php displayBoard(EPD2Board($EPD)); ?> </body> </html>