This commit is contained in:
gnieark 2016-06-29 00:39:52 +02:00
parent 9b476aff75
commit 580357417c

View File

@ -94,9 +94,7 @@ switch($message['action']){
} }
$$key=$message['board'][$key]; $$key=$message['board'][$key];
} }
if(!preg_match('/^[0-9]+-(1|2)$/',$match_id)){
echo "parametre incorrect"; die;
}
if(!is_it_possible_to_place_ships_on_grid($width,$height,$ship1,$ship2,$ship3,$ship4,$ship5,$ship6)){ if(!is_it_possible_to_place_ships_on_grid($width,$height,$ship1,$ship2,$ship3,$ship4,$ship5,$ship6)){
echo "I don't want play this game"; echo "I don't want play this game";