From 4947b14256ad7a9ba5025da68fdb4c798627f39f Mon Sep 17 00:00:00 2001 From: Gnieark Date: Sun, 19 Jun 2016 21:32:50 +0200 Subject: [PATCH] . --- StupidIABattleship.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StupidIABattleship.php b/StupidIABattleship.php index e474b41..7d3b2b2 100644 --- a/StupidIABattleship.php +++ b/StupidIABattleship.php @@ -199,7 +199,7 @@ switch($message['action']){ case 'left': $shipsCoords[]=$x.",".$y."-".($x - $shipWidth + 1).",".$y; $map= place_ship_on_map($x,$y,$x - $shipWidth + 1 ,$y,$map); - break;$message['board'] + break; case 'right': $shipsCoords[]=$x.",".$y."-".($x + $shipWidth - 1 ).",".$y; $map= place_ship_on_map($x,$y,$x + $shipWidth -1 ,$y,$map);