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