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);