From 580357417cebef9979e8b28fbf15e2aa011ac179 Mon Sep 17 00:00:00 2001 From: gnieark Date: Wed, 29 Jun 2016 00:39:52 +0200 Subject: [PATCH] . --- StupidIABattleship.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/StupidIABattleship.php b/StupidIABattleship.php index 0e6dd5a..5a870ac 100644 --- a/StupidIABattleship.php +++ b/StupidIABattleship.php @@ -94,9 +94,7 @@ switch($message['action']){ } $$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)){ echo "I don't want play this game";