connectFour/connectfou
This commit is contained in:
parent
27ca3d91eb
commit
04604fd89b
|
@ -106,7 +106,7 @@ switch ($_POST['act']){
|
||||||
*/
|
*/
|
||||||
//make post datas to send
|
//make post datas to send
|
||||||
$postDatas=array(
|
$postDatas=array(
|
||||||
'game-id' => $_SESSION['matchId'],
|
'game-id' => "".$_SESSION['matchId'],
|
||||||
'action' => 'play-turn',
|
'action' => 'play-turn',
|
||||||
'game' => 'connectfour',
|
'game' => 'connectfour',
|
||||||
'players' => 2,
|
'players' => 2,
|
||||||
|
|
|
@ -15,7 +15,7 @@ function get_IA_Response($iaUrl,$postParams){
|
||||||
);
|
);
|
||||||
$output= curl_exec($ch);
|
$output= curl_exec($ch);
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
echo $iaUrl." ".$data_string." ".$output.'<br/>';
|
//echo $iaUrl." ".$data_string." ".$output.'<br/>';
|
||||||
return json_decode($output,TRUE);
|
return json_decode($output,TRUE);
|
||||||
}
|
}
|
||||||
function get_Post_Params($botsCount){
|
function get_Post_Params($botsCount){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user