Merge pull request #28 from gnieark/dev

animation
This commit is contained in:
Gnieark 2015-12-24 18:29:29 +01:00
commit 0cc23fd85e

View File

@ -203,7 +203,6 @@ switch($_POST['act']){
} }
} }
//print_r($map);
echo json_encode($shipsCoords); echo json_encode($shipsCoords);
file_put_contents(__DIR__."/log.txt",json_encode($shipsCoords),FILE_APPEND); file_put_contents(__DIR__."/log.txt",json_encode($shipsCoords),FILE_APPEND);
break; break;
@ -211,12 +210,7 @@ switch($_POST['act']){
//for debog arena //for debog arena
file_put_contents(__DIR__."/log.txt",print_r($_POST,true),FILE_APPEND); file_put_contents(__DIR__."/log.txt",print_r($_POST,true),FILE_APPEND);
// if((is_int(settype($_POST['width'],"integer"))) && (is_int(settype($_POST['height'],"integer")))){
echo rand(0,$_POST['width'] -1).",".rand(0,$_POST['height'] -1); echo rand(0,$_POST['width'] -1).",".rand(0,$_POST['height'] -1);
// }else{
// echo "boaf".$_POST['width']."-".$_POST['height'];
// }
die; die;