From 73f5dd4e37bff099529617865393e53d143696a4 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Fri, 17 Jun 2016 21:38:36 +0200 Subject: [PATCH] starts dev connect four full json --- src/arenas/Battleship/act.php | 1 - src/arenas/Battleship/functions.php | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/src/arenas/Battleship/act.php b/src/arenas/Battleship/act.php index 1bb6aa7..0fbb6ef 100644 --- a/src/arenas/Battleship/act.php +++ b/src/arenas/Battleship/act.php @@ -50,7 +50,6 @@ switch ($_POST['act']){ die; } $postValues[$p[0]]=$value; - } //check if bots exists $bot1Exists = false; diff --git a/src/arenas/Battleship/functions.php b/src/arenas/Battleship/functions.php index a5ac461..091a314 100644 --- a/src/arenas/Battleship/functions.php +++ b/src/arenas/Battleship/functions.php @@ -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){ if ((($x1 <> $x2) && ($y1 <> $y2)) OR (!isset($map[$y1][$x1]))