starts dev connect four full json
This commit is contained in:
parent
d48c81dce2
commit
73f5dd4e37
|
@ -50,7 +50,6 @@ switch ($_POST['act']){
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
$postValues[$p[0]]=$value;
|
$postValues[$p[0]]=$value;
|
||||||
|
|
||||||
}
|
}
|
||||||
//check if bots exists
|
//check if bots exists
|
||||||
$bot1Exists = false;
|
$bot1Exists = false;
|
||||||
|
|
|
@ -76,18 +76,6 @@ function generate_numeric_select($start,$end,$selected,$name,$id){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_IA_Response($iaUrl,$postParams){
|
|
||||||
$ch = curl_init();
|
|
||||||
curl_setopt($ch, CURLOPT_URL, $iaUrl);
|
|
||||||
curl_setopt($ch, CURLOPT_POST, true);
|
|
||||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $postParams);
|
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
||||||
$output = curl_exec($ch);
|
|
||||||
curl_close($ch);
|
|
||||||
return htmlentities($output);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function place_ship_on_map($x1,$y1,$x2,$y2,$map){
|
function place_ship_on_map($x1,$y1,$x2,$y2,$map){
|
||||||
if ((($x1 <> $x2) && ($y1 <> $y2))
|
if ((($x1 <> $x2) && ($y1 <> $y2))
|
||||||
OR (!isset($map[$y1][$x1]))
|
OR (!isset($map[$y1][$x1]))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user