You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
371 B
PHP
22 lines
371 B
PHP
<?php
|
|
include ("class.TronGame.php");
|
|
include ("class.TronPlayer.php");
|
|
function save_draw_bots($arr){
|
|
/*
|
|
* Recursive function who save all combionaisons of draw matches
|
|
*/
|
|
|
|
if(count($arr) < 2){
|
|
return;
|
|
}else{
|
|
$a = $arr[0];
|
|
array_shift($arr);
|
|
foreach($arr as $bot){
|
|
save_battle('tron',$a,$bot,0);
|
|
}
|
|
save_draw_bots($arr);
|
|
}
|
|
}
|
|
|
|
|